News for hackers. Stuff that matters.
Re:Unit Testing 101: Are You Testing Your JavaScript? by MartinCron on Wednesday February 23, 2011 @01:02PM (#2255048)
It always annoys me when people talk about test automation (TDD, unit testing, whatever) in the context of "finding bugs".

Test automation is about preventing bugs.

Re:Unit Testing 101: Are You Testing Your JavaScript? by cjohansen on Wednesday February 23, 2011 @04:37PM (#2255920)
Test automation is about preventing bugs, sure. And TDD is about software design. I don't disagree.

However, unit testing is also a nice way to find bugs. In any case, "trapping" a bug like I did in this article is often an effective way of introducing newcomers to what a unit test is.

Re:Unit Testing 101: Are You Testing Your JavaScript? by MartinCron on Thursday February 24, 2011 @07:39PM (#2260511)
It was a good article. And using automated tests to trap and isolate problems is an important technique.

I didn't mean my nit-picking to come across as harsh and dismissive. I just get hung up on people talking about writing tests to find bugs, because if that's all it is about, manual testing is generally faster in the short-run.