Open DrJohnT opened 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?
My point is that the Azure DevOps screen shots are wrong as using Category=XX DOES NOT WORK!
The word Category should be changed for TestCategory. The screenshot should look like this:
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
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.
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: