Closed Xen0byte closed 2 years ago
stopAtFirstError
is on the scenario level and not on a test run.
From the docs:
Determines whether the execution should stop when encountering the first error, or whether it should attempt to try and match subsequent steps (in order to detect missing steps).
I made it a little bit clearer in the documentation.
Hi @SabotageAndi. Updating the documentation doesn't address the fact that the setting doesn't seem to work as intended. As described in the summary, steps after the first failed step are still being executed.
I can't reproduce this behavior you describe. The project I created is here: https://github.com/SabotageAndi/GH2563
Aha, I'll clone that maybe later today or sometime tomorrow and see if I can repro it on my end.
OK, I've had another look and it would appear that the feature is working fine in the scope of the scenario context. I suppose that previously it wasn't entirely clear what the scope was, which is why I initially though there might have been an issue here, but now it is, as per the updated documentation.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
SpecFlow Version
3.9.52
Which test runner are you using?
NUnit
Test Runner Version Number
3.13.2
.NET Implementation
.NET 6.0
Project Format of the SpecFlow project
Sdk-style project format
.feature.cs files are generated using
SpecFlow.Tools.MsBuild.Generation NuGet package
Test Execution Method
Visual Studio Test Explorer + Command Line via
dotnet test
SpecFlow Section in app.config or content of specflow.json
{ "language": { "feature": "en-GB", "tool": "en-GB" },
}
Issue Description
After setting stopAtFirstError to true all the subsequent steps will still run. Additionally, it is not clear whether stopAtFirstError applies within the scope of the scenario context, the feature context, or the test run context.
Steps to Reproduce
Link to Repro Project
No response