Skip to content
Visual Studio Coverage Converter
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources
.gitignore
LICENSE
README.md
README_ja.md

README.md

Coverage Converter

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.

Operating environment

  • .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.

Command line arguments

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

Example

Input file:data.coverage
Output file:data.xml

CoverageConverter.exe /in:data.coverage /out:data.xml

Emma format transform.

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

Use of coverage file outputted from MSTest.exe or VisualStudio 2010 or earlier

Please use the following file.
https://github.com/yasu-s/CoverageConverter/releases/download/v1.0/mstest_1.0.zip

You can’t perform that action at this time.