Skip to content

Pretty-print test results from trx files

License

Notifications You must be signed in to change notification settings

devlooped/dotnet-trx

Repository files navigation

Icon dotnet-trx

Version Downloads License Build

Pretty-print test results in TRX format.

Demo

Typical usage: dotnet test --logger trx; trx (optionally with --output).

It automatically integrates with GitHub Actions by appending a pull request comment with the results too. Set up workflow with:

    - name: 🧪 show
      continue-on-error: true
      if: always()
      run:  
        dotnet tool update -g dotnet-trx
        trx --output

And view results in an automatic pull request comment like:

PR comment

NOTE: this behavior is triggered by the presence of the GITHUB_REF_NAME and CI environment variables.

USAGE:
    trx [OPTIONS]

OPTIONS:
                          DEFAULT                                               
    -h, --help                       Prints help information                    
    -v, --version                    Prints version information                 
    -p, --path                       Optional base directory for *.trx files    
                                     discovery. Defaults to current directory   
    -o, --output                     Include test output                        
    -r, --recursive       True       Recursively search for *.trx files         
        --skipped         True       Include skipped tests                      
        --no-exit-code               Do not return a -1 exit code on test       
                                     failures                                   
        --gh-comment      True       Report as GitHub PR comment                
        --gh-summary      True       Report as GitHub step summary              

Install:

dotnet tool install -g dotnet-trx

Update:

dotnet tool update -g dotnet-trx

Sponsors

Clarius Org Kirill Osenkov MFB Technologies, Inc. Stephen Shaw Torutek DRIVE.NET, Inc. Ashley Medway Keith Pickford Thomas Bolon Kori Francis Toni Wenzel Giorgi Dalakishvili Uno Platform Dan Siegel Reuben Swartz Jacob Foshee Eric Johnson Ix Technologies B.V. David JENNI Jonathan Oleg Kyrylchuk Charley Wu Jakob Tikjøb Andersen Seann Alexander Tino Hager Mark Seemann Ken Bonny Simon Cropp agileworks-eu sorahex Zheyu Shen Vezel ChilliCream 4OTC

Sponsor this project  

Learn more about GitHub Sponsors