Reducing the untestable

time to read 1 min | 123 words

Andres has a nice post about unit testing a-sync code, which led me to think about another problem that I've, which is tests which run for a long time. Those are usually integration tests, where I'm simulating a request and checking the response from the server. This means that a test run is slow, in the order of ~30-40 seconds for 60 tests.

I'm thinking about creating an NUnit extention (I'm pretty sure that MbUnit already has this functionality) that run all the tests in the fixture in parallel. The advantages is that you're more likely to finish sooner, and your code is also tested for multi threaded scenarios, which most test do not do.