Re:Test smarter, not harder (2020)
by tpoacher on Wednesday October 19, 2022 @06:23PM
(#33268609)
>Some of the costs associated with tests are:
>the time taken to write them.
>the time they add to the test suite on every run.
>the time to maintain them - understand them, debug them, change them when other things change.
To me these are not unit tests in the first place. A unit test is by definition (at least the venerated M. Feathers one):
simple
fast
used either to help understand code behaviour or flag when this changes.
If you're complaining about unit tests and your unit tests arent unit tests in the first place, then no wonder you won't like TDD as a design approach.
>the time taken to write them.
>the time they add to the test suite on every run.
>the time to maintain them - understand them, debug them, change them when other things change.
To me these are not unit tests in the first place. A unit test is by definition (at least the venerated M. Feathers one):
simple
fast
used either to help understand code behaviour or flag when this changes.
If you're complaining about unit tests and your unit tests arent unit tests in the first place, then no wonder you won't like TDD as a design approach.