dotnet-test-rerun 2.0.0

dotnet tool install --global dotnet-test-rerun --version 2.0.0
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 2.0.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-test-rerun&version=2.0.0
nuke :add-package dotnet-test-rerun --version 2.0.0

dotnet-test-rerun

Status

1 6 3 5 8

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.
--environment, -e Sets the value of an environment variable. Can be set multiple times.
--inlineRunSettings Allow the configuration of inline run settings.

Notes:

  • Sending /p: instructions to set property values is also allowed.

👤 Author & Contributors

👤 João Pereira

👥 Contributors

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 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. 
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.0 12,096 2/15/2024
1.9.0 12,429 1/10/2024
1.9.0-alpha.1 84 12/19/2023
1.8.1 134 1/10/2024
1.8.0 17,657 11/24/2023
1.8.0-alpha.2 106 11/24/2023
1.8.0-alpha.1 68 11/17/2023
1.8.0-alpha.0 69 11/7/2023
1.7.1 132 11/24/2023
1.7.0 3,344 10/31/2023
1.7.0-alpha.0 103 10/25/2023
1.6.1 3,634 10/11/2023
1.6.0 554 10/6/2023
1.6.0-alpha.0 55 10/6/2023
1.5.1-alpha.0 59 10/5/2023
1.5.0 2,497 9/9/2023
1.5.0-alpha.0 148 8/24/2023
1.4.1 2,674 8/15/2023
1.4.0 818 8/1/2023
1.4.0-alpha.7 73 8/2/2023
1.4.0-alpha.6 71 8/2/2023
1.4.0-alpha.5 72 8/1/2023
1.4.0-alpha.4 72 8/1/2023
1.4.0-alpha.3 77 8/1/2023
1.4.0-alpha.2 74 8/1/2023
1.4.0-alpha.1 68 7/26/2023
1.4.0-alpha.0 72 7/17/2023
1.3.1 1,000 7/4/2023
1.3.1-alpha.0 629 7/3/2023
1.3.0 167 7/3/2023
1.3.0-alpha.2 82 7/2/2023
1.3.0-alpha.1 91 7/2/2023
1.3.0-alpha.0 77 7/2/2023
1.2.2-alpha.1 89 7/1/2023
1.2.2-alpha.0 101 6/27/2023
1.2.1 241 6/15/2023
1.2.0 213 6/9/2023
1.2.0-alpha.0 94 4/2/2023
1.1.0 430 3/21/2023
1.0.13 489 3/2/2023
1.0.12 235 2/23/2023
1.0.11 271 2/23/2023
1.0.10 249 2/15/2023
1.0.9 266 2/14/2023
1.0.8 283 2/14/2023
1.0.7 301 2/13/2023
1.0.6 325 2/13/2023
1.0.5 286 2/13/2023
1.0.4 258 2/13/2023
1.0.3 273 2/13/2023
1.0.2 273 2/13/2023
1.0.1 716 2/10/2023
1.0.0 291 2/10/2023