Re:Why Most Unit Testing Is Waste [pdf]
by vkou on Tuesday October 31, 2017 @01:57PM
(#15595142)
If you are testing at the wrong layer of abstraction (Your test is tightly coupled to the implementation of your class, as opposed to its observable behavior), then refactoring your code will require refactoring the test.
The correct solution to this is to not throw passing tests out, but to stop doing white-box testing.
(Not to mention that a test that may pass in your CI environment may fail - frequently - in your local workspace.)
The correct solution to this is to not throw passing tests out, but to stop doing white-box testing.
(Not to mention that a test that may pass in your CI environment may fail - frequently - in your local workspace.)