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
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TRX-Extract-Failed-Tests" Version="3.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TRX-Extract-Failed-Tests --version 3.0.1
#r "nuget: TRX-Extract-Failed-Tests, 3.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .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.

Version Downloads Last updated
3.0.1 54,550 11/22/2020
3.0.0 385 11/17/2020
2.1.0 621 6/20/2020
2.0.2 540 6/19/2020
2.0.1 478 6/19/2020
2.0.0 604 6/15/2020
1.0.1 668 6/14/2020
1.0.0 583 6/13/2020

Minor changes in creation txt file to run failed tests using powershell 'dotnet test testsolution.dll --filter read_the_generated_txt_file_content'