Tuesday, April 26, 2005

The definition of happiness...

... is when all your unit tests go green!

I've recently spent a number of days perfecting a productivity calculation with all the associated business rules.  In order to test the stored procedure, I set up a very simple Excel spreadsheet that called the code for each department, comparing the results against the known figure.  Unit Tests don't have to be in NUnit or an equivalent.  All you need is a repeatable process (that preferably is quicker then doing it manually).

No comments: