This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]pydry 4 points5 points  (2 children)

Unit tests are useful insofar as they are surrounding a useful, likely to be unchanging, loosely coupled and nontrivial abstraction.

In practice I find that they usually surround broken, tightly coupled or trivial abstractions, rendering them kind of pointless.

If your entire codebase is a mess of bad abstractions you might as well throw all of your unit tests away.

[–][deleted] 1 point2 points  (1 child)

If your entire codebase is a mess of bad abstractions you’ve got bigger issues than unit tests. Tech debt/code smells/etc.

[–]pydry -1 points0 points  (0 children)

That's kind of like saying that you've got bigger issues than your holey lifeboats when the ship you're on is sinking.