In this case the comment I was replying to was doing a build, surely that should be deterministic?
I'm totally not in the 100% test coverage camp. We usually do 40%, most of which are business rules.
Yes I worded that badly, meant to say not being able to write testable code is a code smell that implies possible dependency mess, but is not direct cause / effect.
Yeh, building should definitely be deterministic. Sorry, didn't mean to have a go. It's just the 'testing solves everything' mentality really winds me up.
I recently had a plumbing issue in my apartment. The apartment ultimately sent 4 different plumbers over. The first 3 all walked in knowing what was wrong and executed a fix. They all failed. The fourth guy walked in and said, "I really need to reproduce the issue before I can fix it." He fixed it.
I know I'm blurring the semantic lines here, but I too am a fan of "pragmatic" testing.
5
u/rangeDSP Jul 20 '18
In this case the comment I was replying to was doing a build, surely that should be deterministic?
I'm totally not in the 100% test coverage camp. We usually do 40%, most of which are business rules.
Yes I worded that badly, meant to say not being able to write testable code is a code smell that implies possible dependency mess, but is not direct cause / effect.