News for hackers. Stuff that matters.
Re:Is TDD Dead? (2014) by TeeMassive on Wednesday August 26, 2020 @09:53PM (#24289412)
Yes this is the best talk so far. Right now I am in a company that has strict class-method testing strategy. This makes refactoring a pain in the A and decreases the programmer time / quality insured by the test ratio.

In "unit testing", the unit doesn't mean "the smallest thing we test which we decided is a class even if doesn't make sense"; it simply means "on its own" so external dependencies are not in the way.

My heuristic for determining how much a test is worth writing is something like this:

cost of number of outbound dependence * human understanding complexity + non-immutability + how much code coverage it adds.

This leads to a grouping of tests and code that naturally fit together.

There are no comments on this comment yet.