DEV Community

Discussion on: Tell me a coding confession

 
sturzl profile image
Avery

There is a finesse to finding the right the granularity. The first test you write could take 20 lines of logic to turn green. I've found most tutorials use too many tests and too fine a granularity.

100% branch and line coverage isn't useful and hampers productivity. Getting tests done as you code does not.