问题
I am using specflow for writing my feature files .my feature files contains "@Tags"(like:@Authentication,@Login,@Permission,etc...) so i want to run all of them except @Authentication..
so can we use tag like: ~@Authentication so this will execute all test cases except test case containing @Authentication tag
回答1:
As you have stated that you are running the tests from the command line using MSTest.exe then you should be able to run tests that are not in a category (according to the command line options like this:
"%VS100COMNTOOLS%..\IDE\MSTest.exe" /testcontainer:"Project.dll" /category:"!Authentication"
来源:https://stackoverflow.com/questions/26715823/can-we-ignore-particular-tag-using-specflow