Skip to content

devlooped/dotnet-trx

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                    
        --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         
    -v, --verbosity       Quiet      Output display verbosity:                  
                                     - quiet: only failed tests are displayed   
                                     - normal: failed and skipped tests are     
                                     displayed                                  
                                     - verbose: failed, skipped and passed tests
                                     are displayed                              
        --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

Open Source Maintenance Fee

To ensure the long-term sustainability of this project, use of dotnet-trx requires an Open Source Maintenance Fee. While the source code is freely available under the terms of the MIT License, all other aspects of the project --including opening or commenting on issues, participating in discussions and downloading releases-- require adherence to the Maintenance Fee.

In short, if you use this project to generate revenue, the Maintenance Fee is required.

To pay the Maintenance Fee, become a Sponsor at the corresponding OSMF tier (starting at just $10!).

Sponsors

Clarius Org MFB Technologies, Inc. DRIVE.NET, Inc. Keith Pickford Thomas Bolon Kori Francis Toni Wenzel Uno Platform Reuben Swartz Jacob Foshee Eric Johnson David JENNI Jonathan Charley Wu Ken Bonny Simon Cropp agileworks-eu Zheyu Shen Vezel ChilliCream 4OTC Vincent Limo Jordan S. Jones domischell Justin Wendlandt Adrian Alonso Michael Hagedorn torutek Ryan McCaffery Alex Wiese

Sponsor this project  

Learn more about GitHub Sponsors

About

Pretty-print test results from trx files

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Contributors 3

  •  
  •  
  •