I am trying out the new-ish Microsoft.Testing.Platform in my C# unit tests. By default the platform does not produce TRX output, but there is an extension that allegedly provides TRX support: Microsoft.Testing.Extensions.TrxReport
I am referencing that NuGet, but when I try to set the TRX flag on the command line it rejects the flag:
PS C:\SRC\MstTrx> dotnet test --report-trx
MSBUILD : error MSB1001: Unknown switch.
Full command line: 'C:\Program Files\dotnet\sdk\9.0.201\MSBuild.dll -maxcpucount -verbosity:m -tlp:default=auto -nologo -restore --property:VsTestUseMSBuildOutput=true -target:VSTest -nologo --report-trx -property:VSTestArtifactsProcessingMode=collect -property:VSTestSessionCorrelationId=26184_b9a78908-6fcd-4a57-a8f5-7121786eec3b -distributedlogger:Microsoft.DotNet.Tools.MSBuild.MSBuildLogger,C:\Program Files\dotnet\sdk\9.0.201\dotnet.dll*Microsoft.DotNet.Tools.MSBuild.MSBuildForwardingLogger,C:\Program Files\dotnet\sdk\9.0.201\dotnet.dll'
Switches appended by response files:
Switch: --report-trx
For switch syntax, type "MSBuild -help"
It works fine if I just do dotnet test.
I have made a minimal failing example here: https://github.com/CAP-3Shape/MstTrx
The documentation of that TRX extension is very thin. Can anyone please tell me what I am missing?
Thanks!
dotnet test -- --report-trx?