.netnunitcontinuous-integrationteamcityncover

TeamCity run Nunit tests in Parallel


So I was thinking that there must be a better way to run NUnit tests for a .net project via teamcity. Currently the build of the project takes about 10 minutes , and the testing step takes 30ish minutes.

I was thinking about splitting up the Nunit tests into 3 groups, assigning them each to a different agent. And then make sure they have a build dependency on the initial build before they start.

This was the best way i thought of doing it, Is there a different way I should also consider?
On a side note Is it possible to combine all the Nunit tests at the end to get one report from the tests being build on 3 different machines? I dont think this is possible unless someone thought of a clever hack.


Solution

  • For parallel running Nunit test please look in to PnUnit at http://www.nunit.org/index.php?p=pnunit&r=2.5 and for reports you can configure to use Log4Net for Nunit see example here : http://www.softwarefrontier.com/2007/09/using-log4net-with-nunit.html