How to run multiple tags using command line in specflow?
AnsweredI have 3 different tags like "Smoke", "Regression" and "DontRun"
I want to execute Smoke and Regression tag scenarios using command line. How to do that?
For single Tag, I am using below command:
dotnet test --filter Category="<Tag Name>" "D:\<Project Folder>\<projectname>.csproj"
-
You can combine multiple filters: https://docs.microsoft.com/en-us/dotnet/core/testing/selective-unit-tests?pivots=mstest
0 -
dotnet test --filter Category="<Tag Name1>"| "<Tag Name2>" "D:\<Project Folder>\<projectname>.csproj"
dotnet test --filter Category="<Tag Name1 |Tag Name2>" "D:\<Project Folder>\<projectname>.csproj"
I have tried, both the cases, it is not working. Can you please suggest.
0 -
I think it is
dotnet test --filter "Category=<Tag Name1>|Category=<Tag Name2>" "D:\<Project Folder>\<projectname>.csproj"
0 -
Thank you Andreas Willich. You are a STAR
0
Please sign in to leave a comment.
Comments
4 comments