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.23k stars 752 forks source link

Updated misleading documentation #2564

Open DrJohnT opened 2 years ago

DrJohnT commented 2 years ago

Note that the images for Visual Studio Test task are incorrect. The Test filter MUST be TestCategory and NOT Category. These should be updated along with the text

Types of changes

Checklist:

SabotageAndi commented 2 years ago

I am not sure if we have the same understanding what VSTest is. For me, it is the platform for test execution in .NET. All Testframeworks (xUnit, NUnit, MSTest, SpecFlow+ Runner) are integrated into it. So having it on the same list as them, makes no sense for me. For me it can only be VSTest+NUnit, VSTest+xUnit, etc. There is no VSTest for me alone.

AFAIK it passes the filters through to the test framework which does then the filtering. That's at least how I implemented it in the SpecFlow+ Runner.

What does VSTest mean for you?

DrJohnT commented 2 years ago

My point is that the Azure DevOps screen shots are wrong as using Category=XX DOES NOT WORK! image

The word Category should be changed for TestCategory. The screenshot should look like this: image

Examples of using TestCategory (not Category) can be found here https://gasparnagy.com/2016/05/specflow-tips-run-only-specific-scenarios-in-tfsvsts-build/

Documentation for VsTest can be found here https://github.com/microsoft/vstest-docs

SabotageAndi commented 2 years ago

The screenshots are from a project that uses xUnit, in which Category works (https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-test#filter-option-details). That is not stated here and should be.

But you did other changes which adds VSTest to some places that I don't understand why.