There is a way to implement an AfterScenario hook to re-run current test in case of Fail?
Something like this:
[AfterScenario("retry")]
public void Retry()
{
if (ScenarioContext.Current.TestError != null)
{
// ?
}
}
Note: The tests in my project are combined in Ordered tests and executed via MsTest.
In a continuous integration scenario, this was not so hard to set up.
Later, we found out that SpecRun reruns failed tests automatically, but we had other problems with it (that might totally be due to our setup). But you could give it a try.
--
You received this message because you are subscribed to the Google Groups "SpecFlow" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specflow+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
@retry:2
Scenario: Tag on scenario is preferred
Then scenario should be run 3 timesFor more options, visit https://groups.google.com/d/optout.