Retry.Reqnroll.xUnit 1.1.0

dotnet add package Retry.Reqnroll.xUnit --version 1.1.0
                    
NuGet\Install-Package Retry.Reqnroll.xUnit -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Retry.Reqnroll.xUnit" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Retry.Reqnroll.xUnit" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Retry.Reqnroll.xUnit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Retry.Reqnroll.xUnit --version 1.1.0
                    
#r "nuget: Retry.Reqnroll.xUnit, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Retry.Reqnroll.xUnit@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Retry.Reqnroll.xUnit&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Retry.Reqnroll.xUnit&version=1.1.0
                    
Install as a Cake Tool

Reqnroll.Retry

Reqnroll generator plugins that automatically add retries to your BDD test methods. Useful for flaky tests that occasionally fail due to timing issues, network hiccups, or other transient problems.

Packages

Package Test Framework Requirements
Retry.Reqnroll.MSTest MSTest MSTest 3.8 or later
Retry.Reqnroll.NUnit NUnit NUnit 4.5 or later
Retry.Reqnroll.xUnit xUnit xUnit v2 (Reqnroll.xUnit) or xUnit v3 (Reqnroll.xunit.v3)
Retry.Reqnroll.TUnit TUnit

All packages require Reqnroll 3, and have no dependencies of their own.

Installation

Install the package that matches your test framework:

dotnet add package Retry.Reqnroll.MSTest
dotnet add package Retry.Reqnroll.NUnit
dotnet add package Retry.Reqnroll.xUnit
dotnet add package Retry.Reqnroll.TUnit

Configuration

By default, failed tests will retry once. You can change this by setting the ReqnrollRetryCount property in your test project:

<PropertyGroup>
    <ReqnrollRetryCount>2</ReqnrollRetryCount>
</PropertyGroup>

Setting it to 0 turns retries off. Anything other than a whole number of 0 or more fails the build.

What Is Retried

A failed test is retried until it passes or no retries are left, whether it failed an assertion or threw an exception. Ignored and skipped tests are never retried.

With xUnit, tests with pending or undefined steps, or with binding errors, are not retried either, because they would fail the same way on every attempt. Neither are tests in an xUnit v3 test run that is being cancelled.

How It Works

These are Reqnroll generator plugins. When Reqnroll generates the code-behind files for your feature files, the plugin intercepts the generation process and adds the appropriate retry attribute to each test method. xUnit has no retry attribute, so for xUnit the plugin wraps each test method in a retry loop instead, without any additional dependencies.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 67 10/8/2026
1.0.0 186 1/30/2026