TRX-Extract-Failed-Tests
3.0.1
dotnet add package TRX-Extract-Failed-Tests --version 3.0.1
NuGet\Install-Package TRX-Extract-Failed-Tests -Version 3.0.1
<PackageReference Include="TRX-Extract-Failed-Tests" Version="3.0.1" />
paket add TRX-Extract-Failed-Tests --version 3.0.1
#r "nuget: TRX-Extract-Failed-Tests, 3.0.1"
// Install TRX-Extract-Failed-Tests as a Cake Addin #addin nuget:?package=TRX-Extract-Failed-Tests&version=3.0.1 // Install TRX-Extract-Failed-Tests as a Cake Tool #tool nuget:?package=TRX-Extract-Failed-Tests&version=3.0.1
Provide trx file path and output filename with extension of .playlist Open the playlist in your visual studio solution to rerun failed tests
Windows Example: TRXExtractFailedTests.exe C:\folder\filename.trx C:\folder\filename.playlist or If you do not provide output file - see below TRXExtractFailedTests.exe C:\folder\filename.trx output will be created automatically with extension FailedTest.playlist only if any failed tests exists in trx
MacOS Example: dotnet TRXExtractFailedTests.dll /Users/folder/filename.trx /Users/folder/filename.playlist or If you do not provide output file - see below dotnet TRXExtractFailedTests.dll /Users/folder/filename.trx output will be created automatically with extension FailedTest.playlist only if any failed tests exists in trx
Tested in MSTest v2 framework You can use PowerShell to re-run failed tests (dotnet test command) - see code snippet $TestResultsPath = "C:\folder" $TestResultsFile = "ExecutionResults" + $date $TestResultsPlaylistTxt = "$TestResultPath\FailedTest.playlist.txt" $testsolution = "dotnet test $TestLibrary --filter " $loggerfile = ' --logger "trx;logfilename=$TestResultPath\$TestResultsFile.trx"' if(Test-Path -LiteralPath $TestResultsPlaylistTxt -PathType Leaf) { $TestsToRun = [IO.File]::ReadAllText($TestResultsPlaylistTxt) if($TestsToRun -ne "") { Invoke-Expression "$testsolution $TestsToRun $loggerfile"
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.2 is compatible. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Framework | net452 is compatible. net46 was computed. net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
-
.NETCoreApp 2.2
- No dependencies.
-
.NETCoreApp 3.1
- No dependencies.
-
.NETFramework 4.5.2
- No dependencies.
-
.NETFramework 4.6.1
- No dependencies.
-
.NETFramework 4.7.2
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Minor changes in creation txt file to run failed tests using powershell 'dotnet test testsolution.dll --filter read_the_generated_txt_file_content'