Can we Ignore particular @tag using specflow

北慕城南 提交于 2019-12-11 09:37:23

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!