Skip to content

[tests] Add TRX report support for dotnet test#11305

Draft
jonathanpeppers wants to merge 2 commits intomainfrom
jonathanpeppers/add-trx-report-support
Draft

[tests] Add TRX report support for dotnet test#11305
jonathanpeppers wants to merge 2 commits intomainfrom
jonathanpeppers/add-trx-report-support

Conversation

@jonathanpeppers
Copy link
Copy Markdown
Member

Add --report-trx to the dotnet test invocation in DotNetNewAndroidTest and assert the TRX file is generated with test results.

Include Microsoft.Testing.Extensions.TrxReport DLLs in the SDK package so the TRX report provider is available at runtime by adding them to FilesToPackage in Microsoft.Android.Sdk.proj.

Changes:

  • InstallAndRunTests.cs: pass --report-trx to dotnet test, assert TestResults/*.trx exists and contains UnitTestResult elements
  • Microsoft.Android.Sdk.proj: add TrxReport.dll and TrxReport.Abstractions.dll to FilesToPackage

jonathanpeppers and others added 2 commits May 7, 2026 16:01
Add `--report-trx` to the `dotnet test` invocation in `DotNetNewAndroidTest`
and assert the TRX file is generated with test results.

Include `Microsoft.Testing.Extensions.TrxReport` DLLs in the SDK package
so the TRX report provider is available at runtime by adding them to
`FilesToPackage` in `Microsoft.Android.Sdk.proj`.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
These DLLs are not produced by the Microsoft.Android.Run build,
so packaging them causes NU5019 errors. The TRX report provider
comes from the MSTest NuGet package in the test project itself.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant