dotnet-test-rerun
1.8.0-alpha.1
This is a prerelease version of dotnet-test-rerun.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global dotnet-test-rerun --version 1.8.0-alpha.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local dotnet-test-rerun --version 1.8.0-alpha.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-test-rerun&version=1.8.0-alpha.1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package dotnet-test-rerun --version 1.8.0-alpha.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
dotnet-test-rerun
Status
Description
Unfortunately, there isn't a way with plain dotnet test
to automatically rerun failed tests.
This tool is wrapper for the dotnet test
that automatically reruns any tests with the outcome "Failed" until they pass or a maximum number of attempts has been reached. This is useful, for cases where tests may fail intermittently due to external factors such as network connectivity, database availability, or race conditions.
💻 Usage
📦 dotnet tool
dotnet tool install --global dotnet-test-rerun
test-rerun [somepathtodll] [OPTIONS]
🐳 docker image
docker run joaoopereira/dotnet-test-rerun [somepathtodll] [OPTIONS]
▶️ Arguments
argument | description |
---|---|
path |
Path to a test project .dll file. |
▶️ Options
option | description |
---|---|
--filter |
Run tests that match the given expression. |
--settings, -s |
The run settings file to use when running tests. |
--logger, -l |
Specifies a logger for test results. Multiple values are allowed. (default: trx) |
--results-directory, -r |
The directory where the test results are going to be placed. If the specified directory doesn't exist, it's created. |
--rerunMaxAttempts |
Maximum # of attempts. (default: 3) |
--loglevel |
Log Level. (default: Verbose) |
--no-build |
Do not build the project before testing. Implies --no-restore. |
--no-restore |
Do not restore the project before building.* |
--delay, -d |
Delay between test runs in seconds. |
--blame |
Run the tests in blame mode. |
--configuration, -c |
Defines the build configuration. The default for most projects is Debug, but you can override the build configuration settings in your project. |
--framework, -f |
Defines the target framework. |
--verbosity, -v |
Sets the verbosity level of the command. Allowed values are quiet, minimal, normal, detailed, and diagnostic. |
--deleteReports |
Delete the generated report files. |
--collect |
Enables data collector for the test run. Example: --collect "Code Coverage" or --collect "XPlat Code Coverage" |
--mergeCoverageFormat |
Output coverage format. Possible values: Coverage, Cobertura or Xml. It requires dotnet coverage tool to be installed. |
Notes:
- Sending
/p:
instructions to set property values is also allowed. - Inline run settings are supported
👤 Author & Contributors
👤 João Pereira
- Website: jo-pereira.com
- Github: @joaoopereira
👥 Contributors
🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Show your support
Give a ⭐ if this project helped you!
📝 License
Copyright © 2023 João Pereira.
This tool is licensed under GNU General Public License v3.0. See the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
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 |
---|---|---|
2.0.2 | 22,274 | 7/29/2024 |
2.0.1 | 2,482 | 7/20/2024 |
2.0.1-alpha.1 | 55 | 7/7/2024 |
2.0.0 | 46,542 | 2/15/2024 |
1.9.0 | 19,756 | 1/10/2024 |
1.9.0-alpha.1 | 98 | 12/19/2023 |
1.8.1 | 146 | 1/10/2024 |
1.8.0 | 23,304 | 11/24/2023 |
1.8.0-alpha.2 | 117 | 11/24/2023 |
1.8.0-alpha.1 | 80 | 11/17/2023 |
1.8.0-alpha.0 | 81 | 11/7/2023 |
1.7.1 | 149 | 11/24/2023 |
1.7.0 | 3,359 | 10/31/2023 |
1.7.0-alpha.0 | 116 | 10/25/2023 |
1.6.1 | 4,187 | 10/11/2023 |
1.6.0 | 572 | 10/6/2023 |
1.6.0-alpha.0 | 62 | 10/6/2023 |
1.5.1-alpha.0 | 68 | 10/5/2023 |
1.5.0 | 2,604 | 9/9/2023 |
1.5.0-alpha.0 | 153 | 8/24/2023 |
1.4.1 | 3,451 | 8/15/2023 |
1.4.0 | 837 | 8/1/2023 |
1.4.0-alpha.7 | 84 | 8/2/2023 |
1.4.0-alpha.6 | 77 | 8/2/2023 |
1.4.0-alpha.5 | 83 | 8/1/2023 |
1.4.0-alpha.4 | 77 | 8/1/2023 |
1.4.0-alpha.3 | 88 | 8/1/2023 |
1.4.0-alpha.2 | 79 | 8/1/2023 |
1.4.0-alpha.1 | 75 | 7/26/2023 |
1.4.0-alpha.0 | 84 | 7/17/2023 |
1.3.1 | 1,016 | 7/4/2023 |
1.3.1-alpha.0 | 635 | 7/3/2023 |
1.3.0 | 176 | 7/3/2023 |
1.3.0-alpha.2 | 93 | 7/2/2023 |
1.3.0-alpha.1 | 103 | 7/2/2023 |
1.3.0-alpha.0 | 82 | 7/2/2023 |
1.2.2-alpha.1 | 95 | 7/1/2023 |
1.2.2-alpha.0 | 113 | 6/27/2023 |
1.2.1 | 256 | 6/15/2023 |
1.2.0 | 228 | 6/9/2023 |
1.2.0-alpha.0 | 106 | 4/2/2023 |
1.1.0 | 436 | 3/21/2023 |
1.0.13 | 497 | 3/2/2023 |
1.0.12 | 248 | 2/23/2023 |
1.0.11 | 281 | 2/23/2023 |
1.0.10 | 262 | 2/15/2023 |
1.0.9 | 280 | 2/14/2023 |
1.0.8 | 289 | 2/14/2023 |
1.0.7 | 314 | 2/13/2023 |
1.0.6 | 339 | 2/13/2023 |
1.0.5 | 295 | 2/13/2023 |
1.0.4 | 266 | 2/13/2023 |
1.0.3 | 286 | 2/13/2023 |
1.0.2 | 279 | 2/13/2023 |
1.0.1 | 733 | 2/10/2023 |
1.0.0 | 302 | 2/10/2023 |