Are unit tests and unit testing on the decline?  Here is an interesting blog post that discusses this very question.

My $0.02: 

One factor here is that managers usually don’t see the benefit of unit tests except in some theoretical sense.  The folks who really grok unit tests are the good developers, and their managers frequently push them to spend their time writing “real code” instead of tests which never get shipped to customers.

Managers (particlarly the pointy haired kind) like statistics and trends.  If the unit testing tools gave more quantitative metrics and trending, more managers would go for it.  Metrics such as some summary “confidence” number; something to express test failures and remediation in terms of dollars (cost of leaving the defect undetected vs. cost to write the test); and something to correlate tests to defects (more tests/assertions should mean fewer defects).

Leave a Reply