Search code examples
msbuildcontinuous-integrationnunitcruisecontrol.netopencover

How to get NUNIT and OPENCOVER result without executing the test cases twice on CruiseControl.NET?


I have setup CC.NET to run NUNIT first and then OPENCOVER. I have around 2500 NUNIT unit test cases which takes around 2 hours for execution. For OPENCOVER same unit test cases are run by OPENCOVER and entire operation takes close to 5 hours.

Is there any way using which I can run the test cases only once and get the NUNIT as well as OPENCOVER result?


Solution

  • If memory serves, OpenCover launches nunit and profiles it, as such you should be able to tell nunit (via OpenCover) to save results to a file; requiring only one execution?

    See the /xml switch to nunit-console.exe

    Then get ccnet to merge in the results from both nunit and OpenCover.