Coverage file(.coverage) that is output after running the MsTest
I converted to XML file format.
When you convert to the Emma coverage report file format file in Jenkins
I find it useful to use.
- .NET Framework 4.5
- Coverage file output by vstest.console.exe or VisualStudio 2012 or later
※It will not work with coverage files output from MSTest.exe or VisualStudio 2010 or earlier.
argument | description |
---|---|
/in:[ file path or file pattern ] |
specify the file path or file pattern to be input. example:/in:data.coverage or /in:TestResult\*.coverage |
/out:[ file path ] |
specify the file path of the output target. example:/out:data.xml |
/symbols:[ directory ] |
specifies the directory where the debug symbols are located. example:/symbols:TestResult\Out |
/exedir:[ directory ] |
specifies the directory where the executable file to be retrieved coverage is located. example:/exedir:TestResult\Out |
/xsl:[ file path ] |
If you want to convert the output XML, I want to specify the file format of XSL. example:/xsl:MSTestCoverageToEmma.xsl |
Input file:data.coverage
Output file:data.xml
CoverageConverter.exe /in:data.coverage /out:data.xml
Download from the following MSTestCoverageToEmma.xsl.
https://github.com/jenkinsci/mstest-plugin/blob/master/src/main/resources/hudson/plugins/mstest/MSTestCoverageToEmma.xsl
CoverageConverter.exe /in:data.coverage /out:data.xml /xsl:MSTestCoverageToEmma.xsl
Please use the following file.
https://github.com/yasu-s/CoverageConverter/releases/download/v1.0/mstest_1.0.zip