dotnet-retest
0.7.1
dotnet tool install --global dotnet-retest --version 0.7.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local dotnet-retest --version 0.7.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-retest&version=0.7.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package dotnet-retest --version 0.7.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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]]
(with optional --attempts
which defaults to 3
):
- 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_NAME
andCI
environment 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
verbose
verbosity, 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
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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
0.7.1 | 8,388 | a month ago |
0.7.0 | 794 | 2 months ago |
0.6.5 | 632 | 2 months ago |
0.6.4 | 212 | 2 months ago |
0.6.3 | 25,787 | 7 months ago |
0.6.2 | 501 | 8 months ago |
0.6.1 | 506 | 8 months ago |
0.6.0 | 135 | 8 months ago |
0.5.0 | 102 | 8 months ago |
0.4.1 | 109 | 8 months ago |
0.4.0 | 113 | 8 months ago |
0.3.0 | 134 | 8 months ago |
0.2.3 | 99 | 8 months ago |
0.2.2 | 95 | 8 months ago |
0.2.1 | 92 | 8 months ago |
0.2.0 | 373 | 9 months ago |
0.1.0 | 118 | 9 months ago |