TRX-Extract-Failed-Tests 3.0.1

Extract failed tests from trx report file and creates a Visual studio playlist for MSTest Framework

Install-Package TRX-Extract-Failed-Tests -Version 3.0.1
dotnet add package TRX-Extract-Failed-Tests --version 3.0.1
<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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: TRX-Extract-Failed-Tests, 3.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. 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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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"

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"

Release Notes

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

  • .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 History

Version Downloads Last updated
3.0.1 331 11/22/2020
3.0.0 146 11/17/2020
2.1.0 329 6/20/2020
2.0.2 292 6/19/2020
2.0.1 237 6/19/2020
2.0.0 334 6/15/2020
1.0.1 398 6/14/2020
1.0.0 312 6/13/2020