Skip to content

Add code coverage artifact post-processing test - #55940

Merged
Evangelink merged 3 commits into
mainfrom
dev/amauryleve/complete-artifact-post-processing
Aug 26, 2026
Merged

Add code coverage artifact post-processing test#55940
Evangelink merged 3 commits into
mainfrom
dev/amauryleve/complete-artifact-post-processing

Conversation

@Evangelink

@Evangelink Evangelink commented Aug 26, 2026

Copy link
Copy Markdown
Member

Closes #47613

Summary

  • add an end-to-end dotnet test scenario proving Microsoft code coverage artifacts are consolidated across two MTP test applications
  • verify --no-artifact-post-processing continues to report the two original coverage artifacts
  • verify successful post-processing reports one merged artifact while preserving both originals on disk
  • update the artifact post-processing documentation with the currently shipping first-party processors
  • update the MTP help snapshot for the option text shipped by the flowed TestFX build

Dependency

Depends on #55936, which flows the TestFX build containing Microsoft.Testing.Extensions.CodeCoverage 18.11.0-preview.26425.2 into SDK main.

Validation

  • build.cmd -c Debug
  • RunTargetedTests.cs --project test\dotnet.Tests\dotnet.Tests.csproj --filter "FullyQualifiedName~GivenDotnetTestBuildsAndRunsArtifactPostProcessingMTP.MultiProjectRun_MergesCodeCoverageArtifacts"
  • RunTargetedTests.cs --project test\dotnet.Tests\dotnet.Tests.csproj --filter "FullyQualifiedName~MTPHelpSnapshotTests.VerifyMTPHelpOutput"

dotnet-maestro Bot and others added 2 commits August 26, 2026 13:32
…260826.8

On relative base path root
Microsoft.Testing.Platform From Version 2.4.0-preview.26418.7 -> To Version 2.4.0-preview.26426.8
MSTest , MSTest.Sdk From Version 4.4.0-preview.26418.7 -> To Version 4.4.0-preview.26426.8
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 93865f10-f2c3-4bcb-9664-ad9c39094d1f
Copilot AI lite review requested due to automatic review settings August 26, 2026 14:36
@Evangelink
Evangelink requested a review from a team as a code owner August 26, 2026 14:36
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an end-to-end dotnet test (MTP) scenario to validate artifact post-processing for Microsoft code coverage, updates TestFX dependency versions to a newer build, and refreshes artifact post-processing documentation to reflect currently shipping processors.

Changes:

  • Add an E2E test that verifies .coverage artifacts are merged across two test applications, while preserving original artifacts and honoring --no-artifact-post-processing.
  • Update TestFX-related dependency versions (MSTest.Sdk / MSTest / Microsoft.Testing.Platform) to a newer preview build.
  • Update dotnet test artifact post-processing documentation to list additional first-party processors beyond TRX.
Show a summary per file
File Description
test/dotnet.Tests/CommandTests/Test/GivenDotnetTestBuildsAndRunsArtifactPostProcessingMTP.cs Adds new coverage merge E2E scenario + helper methods for running coverage and building a multi-project solution.
global.json Updates the MSTest.Sdk MSBuild SDK version to match the newer TestFX build.
eng/Version.Details.xml Updates TestFX dependency versions/SHA to the newer build.
eng/Version.Details.props Updates property-backed TestFX package versions to the newer build.
documentation/general/dotnet-test-artifact-post-processing.md Updates documentation to reflect more shipping post-processors and clarifies current behavior.

Review details

  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Lite

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 93865f10-f2c3-4bcb-9664-ad9c39094d1f
@Evangelink
Evangelink merged commit 19aee00 into main Aug 26, 2026
12 of 25 checks passed
@Evangelink
Evangelink deleted the dev/amauryleve/complete-artifact-post-processing branch August 26, 2026 15:05
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dotnet test for MTP should support post-processing of artifacts

3 participants