Wie erhalte ich TRX -Ausgabe von C# -Nit -Tests mit Microsoft.Testing.platform?C#

Ein Treffpunkt für C#-Programmierer
Anonymous
 Wie erhalte ich TRX -Ausgabe von C# -Nit -Tests mit Microsoft.Testing.platform?

Post by Anonymous »

Ich probiere die neu-is- microsoft.Testing.PLATFORM in meinen C# Unit-Tests aus. Standardmäßig erzeugt die Plattform keine TRX -Ausgabe, aber es gibt eine Erweiterung, die angeblich TRX -Unterstützung bietet: microsoft.testing.extensions.trxReport < /p>
Ich beziehe mich auf diese Nuget, aber wenn ich versuche, das TRX -Flag auf die Befehlszeile festzulegen, lehnt sie das Flaggenabschnitt ab: < /p>
>

Code: Select all

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"
Es funktioniert gut, wenn ich nur einen Dotnet-Test . Kann mir bitte jemand sagen, was mir fehlt?
Danke!

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post