News for hackers. Stuff that matters.
Re:Lean Testing or Why Unit Tests Are Worse Than You Think by karmakaze on Monday July 16, 2018 @07:41AM (#17540475)
The highezt cost of unit tests is when they are refs tired with code. The value of a unit test is greatest when written before the implemantation. When refactored it is usually just made to pass by any means necessary to stay green without much/any thought. They are also brittle in these cases where refactoring the test can take meant times longer than the code it tests.

My advice is usually to do tdd for new dev have good coverage of full function tests and delete unit tests if the get in the way/lose value on refactoring. No one likes deleting tests but they must add value or its just more debt.

There are no comments on this comment yet.