We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 172460a commit 594ee4dCopy full SHA for 594ee4d
1 file changed
TestStack.BDDfy/Processors/TestRunner.cs
@@ -19,7 +19,7 @@ public void Process(Story story)
19
var stepFailed = false;
20
foreach (var executionStep in scenario.Steps)
21
{
22
- if (stepFailed && (Configuration.Configurator.Processors.TestRunner.StopExecutionOnFailingThen || !executionStep.Asserts))
+ if (stepFailed && ShouldExecuteStepWhenPreviousStepFailed(executionStep))
23
break;
24
25
if (executor.ExecuteStep(executionStep) == Result.Passed)
@@ -38,5 +38,10 @@ public void Process(Story story)
38
}
39
40
41
+
42
+ private static bool ShouldExecuteStepWhenPreviousStepFailed(Step executionStep)
43
+ {
44
+ return Configuration.Configurator.Processors.TestRunner.StopExecutionOnFailingThen || !executionStep.Asserts;
45
+ }
46
47
0 commit comments