Microsoft Testing is a set of platform, framework and protocol intended to make it possible to run any test on any target or device. This package extends Microsoft Testing Platform to produce JUnit XML test reports compatible with Jenkins, GitLab, Azure DevOps and other CI systems.
Install
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard |
README
Microsoft.Testing.Extensions.JUnitReport
Microsoft.Testing.Extensions.JUnitReport is an extension for Microsoft.Testing.Platform that generates a JUnit XML test report at the end of a test session, compatible with Jenkins, GitLab, Azure DevOps, CircleCI and other CI systems.
Microsoft.Testing.Platform is open source. You can find Microsoft.Testing.Extensions.JUnitReport code in the microsoft/testfx GitHub repository.
Install the package
dotnet add package Microsoft.Testing.Extensions.JUnitReport
About
⚠️ Experimental: This extension is currently experimental. The API, CLI options and on-disk format may change in future releases without notice.
This package extends Microsoft.Testing.Platform with:
- JUnit XML report: a single
.xmlfile in the de facto Jenkins / Surefire-compatible JUnit format - CI-friendly: directly consumable by Jenkins (
junitstep), GitLab (junit:artifact reports), Azure DevOps (PublishTestResults@2withtestResultsFormat: 'JUnit'), CircleCI, GitHub Actions test reporters and any other tool that understands the JUnit XML schema - Tree-of-tests preserved: MTP exposes a tree of tests, not a flat list. The JUnit XML schema only defines a flat list of test suites, so the full parent chain of each test is preserved as a
<property name="testpath" value="A/B/C"/>element inside<testcase>for tools that wish to reconstruct the hierarchy
Enable the report via the --report-junit command line option. The report file name can be overridden with --report-junit-filename <name>.xml.
Documentation
For comprehensive documentation, see https://aka.ms/testingplatform.
Feedback & contributing
Microsoft.Testing.Platform is an open source project. Provide feedback or report issues in the microsoft/testfx GitHub repository.
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.