Configure jenkins to generate Test Results
Configure jenkins to generate Test Results
I'm configuring Jenkins to generate code coverage results of my .Net application using MSTest. How can I generate XML or HTML reports using command line I have configure using //CoverageFile="c:\dev\code\coverage.xml" option but it says Unrecognized command line option. (I'm using the trial version)
RE: Configure jenkins to generate Test Results
Hi Jayantha,
First check out the MSTest syntax you need here:
http://docs.ncover.com/how-to/running-ncover-with-your-unit-testing-framework/mstest/
The //x syntax is to output the coverage file to a given filename. See this page for more NCover command line syntax:
http://docs.ncover.com/ref/3-0/ncover-console/command-line
Then, wrap that syntax in a Hudson/Jenkins command task, as shown here, under "Sample with Jenkins":
http://blog.eweibel.net/?p=982
Hope this helps you!
NCover Support