我工作的第一家真正的软件公司是关于单元测试(NUnit)的。我不知道当时我们是不是真的坚持这个原则——我不知道我们的代码覆盖率是什么样的,而且大部分的单元测试都是我编写的。从那以后,我遇到过一些做大量测试的公司,但那是椅子测试: 依赖于一个人在那里,具有较低的重复性和较低的捕捉错误的机会。另一种态度是: 这是他们想在“未来”得到的东西; 基本上就是当钱从天上掉下来的时候。
I miss unit testing -- it just makes life easier. But I'm finding that when I look for a new job, unit testing is either something that companies would like to "get going with" in the future or something they don't do at all (uhh, it's been around for a while now!). I'd say that 60-75% of the job reqs I've looked at over the past 2 years have not listed unit testing at all. I can only think of one or two that had unit testing experience as a requirement (for a mid-level developer position).
所以问题是 少了什么?我认为它使人们更有效率,但那只是在花费了大量的时间真正去做之后。关于单元测试的成本节约,难道没有很好的研究吗?是我要找的那种公司吗?
编辑: 尽管这个标题有点像魔鬼的拥护者,但我认为自己是单元测试的拥护者。