News for hackers. Stuff that matters.
Re:Kent Beck: “I get paid for code that works, not for tests... by Arnt on Thursday December 08, 2016 @12:19PM (#13132003)
Unit tests are important to that goal. But that doesn't make every aspect of every unit test important as such.

Specifically, if a test passes right away, then its error reporting isn't important today. It probably comes in useful if the test ever breaks, but will the test ever break? Therefore, spending significant time on the error reporting today is YAGNI, even if minimal version of the test is useful.

My complain is that even if unit tests are useful to a degree, people trot out the reasons for usefulness primarily when those reasons do NOT apply.

Re:Kent Beck: “I get paid for code that works, not for tests... by st3v3r on Thursday December 08, 2016 @01:35PM (#13132796)
I cannot disagree more. If you are bothering to write a test in the first place, do it right. There is nothing worse as a developer than receiving a ticket or a user report saying "It broke; fix it" with no other information.

Not to mention it will literally take you 2 minutes to add the better reporting.

Re:Kent Beck: “I get paid for code that works, not for tests... by switchbak on Thursday December 08, 2016 @07:24PM (#13135632)
Ok, I see what you're getting at there.

So if it takes you significant time to get proper defect locality, I think you should see if there's a better way to approach the problem. This should be essentially the default for typical/modern unit tests. Perhaps you're writing tests that are more like system level tests?

I'd also say that if you're essentially certain a test will never break, then (other than for documentation purposes) why are you writing it? To paraphrase Kent Beck - we should only test things that could possibly break.

You might be overgeneralizing what "people" say about unit tests - I'm not sure what your specific scenario is, but there are a whole spectrum of opinions on the subject. Perhaps this is just an organizational code-smell of the place you're mentioning.

Dogmatism/cargo culting in general can be annoying however.