Skip to content

devlooped/dotnet-retest

Repository files navigation

Icon dotnet retest

Version Downloads License Build

Runs dotnet test with retries for failed tests automatically, and pretty-prints aggregated test results, integrating also with GitHub PR comments just like dotnet-trx.

Demo

When running locally, it provides live progress on each run:

Demo

and timing and outcome for each attempt:

Demo

Typical usage: dotnet retest [OPTIONS] [-- [dotnet test options]] (with optional --attempts which defaults to 5):

    - name: 🧪 test
      run: |
        dotnet tool update -g dotnet-retest
        dotnet retest -- --no-build [other test options and args]

PR comment integration:

PR comment

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

USAGE:
    dotnet retest [OPTIONS] [-- [dotnet test options]]

OPTIONS:
                        DEFAULT                                                
    -h, --help                     Prints help information                     
    -v, --version                  Prints version information                  
        --retries       3          Maximum retries when re-running failed tests
        --no-summary               Whether to emit a summary to console/GitHub 
        --output                   Include test output in report               
        --skipped       True       Include skipped tests in report             
        --gh-comment    True       Report as GitHub PR comment                 
        --gh-summary    True       Report as GitHub step summary               

Install:

dotnet tool install -g dotnet-retest

Update:

dotnet tool update -g dotnet-retest

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 Vincent Limo Brooke Hamilton

Sponsor this project  

Learn more about GitHub Sponsors

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published