SpecFlowOSS / SpecFlow

#1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration
https://www.specflow.org/
Other
2.24k stars 754 forks source link

Documentation request: how to mark a Feauture as Pending if any of its Scenarios is Pending #2520

Open arialdomartini opened 2 years ago

arialdomartini commented 2 years ago

Product:

What is missing:

When a Feature contains a Scenario which fails because of a failing Step, it is marked as Failed. On the contrary, When a Feature contains a pending Scenario, it is marked as Successful.

For some circumstances, it may makes sense to consider Pending / Incomplete a Feature, unless all of its Scenarios are successful (i.e. it contains no Pending Scenarios).

I guess that this is possible via configuration or by playing with Hooks. I found no references in the documentation, so I kindly ask you to consider covering this case.