MSTest Plugin

Skip to end of metadata
Go to start of metadata

Plugin Information

Plugin ID mstest Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
0.19 (archives)
Sep 01, 2015
emma (version:1.29)
junit (version:1.4)
Source Code
Issue Tracking
Pull Requests
Open Issues
Pull Requests
Ivo Bellin Salarin (id: nilleb)
Usage Installations 2014-Aug 2579
2014-Sep 2721
2014-Oct 2867
2014-Nov 2856
2014-Dec 2936
2015-Jan 3065
2015-Feb 3108
2015-Mar 3312
2015-Apr 3266
2015-May 3233
2015-Jun 3383
2015-Jul 3491

This plugin converts MSTest TRX test reports into JUnit XML reports so it can be integrated with Jenkin's JUnit features.

You can use MSTestRunner plugin or VsTestRunner plugin to run the test and use this plugin to process the results.

Code Coverage Support

This plugin can be used to show the code coverage information collected during the build. This, under some conditions.

The code coverage data must have been converted to a .coveragexml file, in order for the mstest plugin to use it.

The .coveragexml MUST not have been produced by C:\Program Files (x86)\Microsoft Visual Studio 1X.0\Team Tools\Dynamic Code Coverage Tools\CodeCoverage.exe.

Why CodeCoverage.exe is not supported ?

Despite the fact that the produced files have the same extension, CodeCoverage.exe produces a .coveragexml whose format differs from the .coveragexml produced by Visual Studio or by a tool written using the instructions found on MSDN.

Will be CodeCoverage.exe supported ?

Probably. The format produced by this tool is the one read by SonarQube, so it's just a question of time.

I am aware of an XSLT which transforms the .coveragexml produced by Visual Studio to the format produced by CodeCoverage.exe. I will try to engineer the opposite. If some brave is interested in producing it, pull requests are welcome.

Change Log

Version 0.18 (May 12th, 2015) --- !!! Java 1.7 is required !!!

  • Add support for "Retain long standard output/error" [JENKINS-28281]. The default value for this option is false. If you're automating the creation of your jobs, simply specify keepLongStdio=on as a parameter of your query. Any other value than 'on' will set this option to false.
  • Add localized messages for it, pt-BR, fr
  • Cumulated code coverage filename: vstest.coveragexml
  • Add default values for test result pattern and "fail if no result file is found": */.trx and true.

Version 0.17 (May 4th, 2015) --- !!! Java 1.7 is required !!!

  • Add a checkbox to ignore missing TRX files (Thanks Christopher Bush, pull request #7). The pull request contains also a way to automate job creation using the REST API. So, if you're automating the creation of your jobs, just specify failOnError=on to enable this feature. Any other value than 'on' will set this option to false.
  • Fix the code coverage calculations (Thanks junshanxu, pull request #6): a sum over all the nodes is better than using the value of the first node only.

Version 0.16 (Apr 14th, 2015) --- !!! Java 1.7 is required !!!

  • Show the code coverage graph for coveragexml files (one of the two XSD, the one produced by vstest)

Version 0.15 (Apr 14th, 2015) --- !!! Java 1.7 is required !!!

  • Improve support for data driven tests (Thanks, Darryl Melander: pull request #6)
  • Preserve charsets while fixing TRX files (JENKINS-23531, reopened by JitinJohn@MS)

Version 0.14 (Apr 1st, 2015)

  • Support for output/stdout messages (JENKINS-19384)
  • Drop invalid XML entities (JENKINS-23531). MSTest allows writing XML entities corresponding to invalid XML characters. These XML entities generate exceptions while being parsed by Java parsers. For me, it's still unclear if such entities are standard or not. However, to avoid these exceptions, the mstest parser simply drops them. These entities normally correspond to non printable characters.
  • Support for .coveragexml files. The coverage data present in these files is being transformed in an EMMA coverage report. Today, you can try to generate vscoveragexml files using or

Version 0.13 (Mar 18, 2015)

  • Support for ignored tests (JENKINS_27469)
  • Support for data driven tests (JENKINS-8193, JENKINS-4075)
  • Support for timed out tests (JENKINS-11332)
  • Support for TextMessages (JENKINS-17506)
  • Improved processing for tests whose @outcome is not set
  • Stacktraces are now shown as stacktraces, and error messages as error messages

Version 0.12 (Mar 12, 2015)

  • Convert MS XML code coverage reports in emma coverage reports, and show them.
  • Fix: the tests for which the outcome is 'error' (or missing, with an error message or a stack trace) will be reported as junit errors.

Version 0.11 (Jan 17, 2015)

  • Support vstest TRX format
  • Support environment variables as target (vstestrunner-plugin exports the full path to the TRX as environment variable)

Version 0.7 (Jun 17, 2011)

Version 0.6 (Feb 11, 2010)

  • Fixed issue issue #3906: Durations greater than 59s
  • Fixed issue issue #4632: MSTest plugin does not parse Visual Studio 2010 results

Version 0.5 (Feb 6, 2010)

  • Update code for more recent Hudson

Version 0.4 (Jun 16, 2009)

  • Fixed the AbortException issue
  • Added i18n support
  • Added Brazilian portuguese localization

Version 0.3

  • Indentifies test's class using the ExecutionId variable

Version 0.2

  • Fixed a problem to identify namespace and class name from the TestMethod tag
  • Changed JUnit test report file name

Version 0.1

  • Initial Release


plugin-report plugin-report Delete
plugin-dotnet plugin-dotnet Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Add Comment