I would like to execute scenario by it's tag and using dotnet test command
@alpha
Scenario: A
@alpha
Scenario: B
@beta
Scenario: C
@gama
Scenario: D
I have four scenarios I would like to run them using
This runs 2 scenario perfectly fine
dotnet test --no-build TestApp.csproj --filter TestCategory=alpha
This says No test matches the given testcase filter
dotnet test --no-build TestApp.csproj --filter "CategoryAttribute=alpha&CategoryAttribute=beta"
Does anyone has experience to run specflow scenarios along with dotnet test CLI?
Filter and syntax was wrong. Below is correct command to run specflow nunit test with dotnet test CLI.
dotnet test --no-build TestApp.csproj --filter "(TestCategory=alpha | TestCategory=beta)"
Took me too long to find this page:
https://docs.specflow.org/projects/specflow/en/latest/Getting-Started/Getting-Started-With-An-Example.html#further-dotnet-test-examples
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.
Most helpful comment
Took me too long to find this page:
https://docs.specflow.org/projects/specflow/en/latest/Getting-Started/Getting-Started-With-An-Example.html#further-dotnet-test-examples