Open SabotageAndi opened 4 years ago
I would just like to add that I don't know about Skip.If()
in xUnit but I used IUnitTestRuntimeProvider.TestIgnore
as per https://docs.specflow.org/projects/specflow/en/latest/Execution/SkippingScenarios.html with NUnit in a BeforeScenario
hook scoped to a specific tag and it seemed to work fine. Perhaps the documentation should be updated to say this limitation is xUnit-specific?
@bklebe Thanks for the info. The documentation page for it is here: https://github.com/SpecFlowOSS/SpecFlow/blob/master/docs/Execution/SkippingScenarios.md Would you adjust the documentation with this information?
Happy to.
SpecFlow Version:
Used Test Runner
Version number:
Project Format of the SpecFlow project
packages.config
<PackageReference>
tags.feature.cs files are generated using
SpecFlow.Tools.MsBuild.Generation
NuGet packageSpecFlowSingleFileGenerator
custom toolVisual Studio Version
Enable SpecFlowSingleFileGenerator Custom Tool
option in Visual Studio extension settingsAre the latest Visual Studio updates installed?
<Major>.<Minor>.<Patch>
.NET Framework:
Test Execution Method:
<SpecFlow> Section in app.config or content of specflow.json
Repro Project
Issue Description
The Scenario should be skipped.
This works for bindings, but not for hooks.