News for hackers. Stuff that matters.
Re:Write tests. Not too many. Mostly integration by hvidgaard on Friday October 27, 2017 @02:07AM (#15566088)
I doubt that you can. There was a study a while back, and I apologize in advance because I do not have a link, that showed projects written with unittests took significantly longer to reach the market, but with significantly less bugs. However, overall time spend on the code was less. So conclusion was that unittests are a commitment to a long term goal of minimizing developer time, and the tradeoff is that it takes longer for the first version to be done.

That is, as far as I know, the only tangible evidence that unittests are good unless you need to get something out the door quickly (which sadly is most of it).

I'd argue that is not the main benefit of unittesting however. That is the way code is structured, and especially how dependencies are explicit, e.g. injected with constructor arguments.

Re:Write tests. Not too many. Mostly integration by hinkley on Friday October 27, 2017 @01:00PM (#15570177)
That parallels my experiences. I got tired really early on with projects that ground to a halt because of brittleness and a lot of my focus is on building skill and confidence so that version 3 is no harder to ship than version 2 was. Every team I’ve left on good terms was more effective when I left than when I got there. The ones that fought me the whole way frustrate me and it shows.
Re:Write tests. Not too many. Mostly integration by chewbacha on Friday October 27, 2017 @04:39AM (#15566667)
Man, I really want to read that study!
Re:Write tests. Not too many. Mostly integration by alien_at_work on Friday October 27, 2017 @01:51PM (#15570657)
Was this the microsoft study? I think it was a breakdown of their delivery of Vista?