dotnet-retest
1.0.0
dotnet tool install --global dotnet-retest --version 1.0.0
dotnet new tool-manifest
dotnet tool install --local dotnet-retest --version 1.0.0
#tool dotnet:?package=dotnet-retest&version=1.0.0
nuke :add-package dotnet-retest --version 1.0.0
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.

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

and timing and outcome for each attempt:

Typical usage: dotnet retest [OPTIONS] [-- [dotnet test options]]:
- name: 🧪 test
run: |
dotnet tool update -g dotnet-retest
dotnet retest -- --no-build [other test options and args]
PR comment integration:

NOTE: this behavior is triggered by the presence of the
GITHUB_REF_NAMEandCIenvironment variables.
USAGE:
dotnet retest [OPTIONS] [-- [dotnet test options]]
OPTIONS:
DEFAULT
-h, --help Prints help information
--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
-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
--gh-comment True Report as GitHub PR comment
--gh-summary True Report as GitHub step summary
NOTE: rendering the passed tests requires
verboseverbosity, since typically you'll just want to see the failed tests in the report, especially in projects with large number of tests.
Install:
dotnet tool install -g dotnet-retest
Update:
dotnet tool update -g dotnet-retest
Open Source Maintenance Fee
To ensure the long-term sustainability of this project, use of dotnet-retest 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
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 35,042 | 9/30/2025 |
| 0.7.2 | 33,971 | 7/30/2025 |
| 0.7.1 | 50,623 | 3/2/2025 |
| 0.7.0 | 853 | 2/25/2025 |
| 0.6.5 | 724 | 2/18/2025 |
| 0.6.4 | 265 | 2/18/2025 |
| 0.6.3 | 31,535 | 9/2/2024 |
| 0.6.2 | 560 | 8/24/2024 |
| 0.6.1 | 556 | 8/8/2024 |
| 0.6.0 | 184 | 8/7/2024 |
| 0.5.0 | 155 | 8/7/2024 |
| 0.4.1 | 159 | 8/7/2024 |
| 0.4.0 | 181 | 8/7/2024 |
| 0.3.0 | 198 | 7/31/2024 |
| 0.2.3 | 142 | 7/29/2024 |
| 0.2.2 | 184 | 7/29/2024 |
| 0.2.1 | 165 | 7/29/2024 |
| 0.2.0 | 422 | 7/21/2024 |
| 0.1.0 | 164 | 7/21/2024 |
