Skip to main content
net8.0net9.0.NETStandard2.0

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.

Published
Jul 28, 2026
2mo ago
Total Downloads
27.0K
26,981

Install

dotnet add package Microsoft.Testing.Extensions.JUnitReport --version 1.0.0-alpha.26377.5
ProductVersions
.NET
net8.0net9.0
.NET Standard
netstandard2.0

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 .xml file in the de facto Jenkins / Surefire-compatible JUnit format
  • CI-friendly: directly consumable by Jenkins (junit step), GitLab (junit: artifact reports), Azure DevOps (PublishTestResults@2 with testResultsFormat: '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

No structural changes between v1.0.0-alpha.26363.8 and v1.0.0-alpha.26377.5.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.