Friday, June 04, 2004

Interesting Take on Unit Tests

Brian Malcolm has an interesting take on Unit Tests which has actually made me stop and think for a little bit. Basically he say to write unit tests and have a policy in place so that no one can check code back in until it passes all the unit tests. This way, if someone writes or modifies some code that breaks your code, they can't check it in, and then you have to come behind them and fix the problem.

That is actually a good idea, and I have never really thought about it from that perspective. Like all developers, testing is always the last thing I normally do, except for some spot testing during development. It might be interesting on my next project to try creating the unit tests up front and see how this goes.

0 Comments:

Post a Comment

<< Home