Skip to content

SpecFlow generator plugin that adds ability to retry tests on failure for MSTest/NUnit.

License

BSD-3-Clause, MIT licenses found

Licenses found

BSD-3-Clause
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

Calrom-Ltd/specflow-retrycore

 
 

Repository files navigation

specflow-retry

SpecFlow generator plugin that adds ability to retry tests on failure for MSTest/NUnit.

Versions

"SpecFlow.RetryCore" version="2.3.0" (dependency on "SpecFlow" version="2.4.8")

Setup

Add the nuget package and the SpecFlow.CustomPlugin

Usage

Adding a retry at the feature level will re-try any failing scenario:

@retry:1
Feature: SampleFeature
    In order to avoid silly mistakes
    As a math idiot
    I want to be told the sum of two numbers

Scenario: Tag on feature should be applied
    Then scenario should be run 2 times

Scenario Outline: Tag on feature should be applied to outlined scenario
    Then scenario "<example>" should be run 2 times
Examples: 
    | example |
    | first   |
    | second  |

Adding a retry at the scenario level will re-try the failing scenario:

@retry:2
Scenario: Random number generator test
    Given I have random number generator
    When it generates number
    Then I'll be lucky if it will be greater then 0.3

Build status

About

SpecFlow generator plugin that adds ability to retry tests on failure for MSTest/NUnit.

Resources

License

BSD-3-Clause, MIT licenses found

Licenses found

BSD-3-Clause
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%