dotnet-test-rerun 1.2.2-alpha.0

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

dotnet-test-rerun

Status

1 6 3 5

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.

Installation

dotnet tool install --global dotnet-test-rerun

Usage

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. (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.

License

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 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.0 20,937 2/15/2024
1.9.0 13,062 1/10/2024
1.9.0-alpha.1 85 12/19/2023
1.8.1 137 1/10/2024
1.8.0 18,716 11/24/2023
1.8.0-alpha.2 113 11/24/2023
1.8.0-alpha.1 68 11/17/2023
1.8.0-alpha.0 69 11/7/2023
1.7.1 133 11/24/2023
1.7.0 3,347 10/31/2023
1.7.0-alpha.0 104 10/25/2023
1.6.1 3,723 10/11/2023
1.6.0 554 10/6/2023
1.6.0-alpha.0 56 10/6/2023
1.5.1-alpha.0 60 10/5/2023
1.5.0 2,513 9/9/2023
1.5.0-alpha.0 149 8/24/2023
1.4.1 2,828 8/15/2023
1.4.0 819 8/1/2023
1.4.0-alpha.7 74 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 69 7/26/2023
1.4.0-alpha.0 72 7/17/2023
1.3.1 1,001 7/4/2023
1.3.1-alpha.0 630 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 90 7/1/2023
1.2.2-alpha.0 102 6/27/2023
1.2.1 248 6/15/2023
1.2.0 213 6/9/2023
1.2.0-alpha.0 95 4/2/2023
1.1.0 431 3/21/2023
1.0.13 490 3/2/2023
1.0.12 236 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 293 2/10/2023