Can you tag individual examples in a scenario outline in SpecFlow?

后端 未结 2 851
春和景丽
春和景丽 2021-01-25 06:20

Scenario outlines are very handy for creating data driven tests, but the number of scenarios increases with the number of examples. I\'ve gotten in the habit of tagging scenario

2条回答
  •  清酒与你
    2021-01-25 06:55

    I am able to run single example from scenario outline by below command

    C:\Users\..\..\bin\Debug>"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\Extensions\TestPlatform\vstest.console.exe" yourTests.exe /Tests:yourTestName

    where yourTestName is the name of the test that is generated in test explorer upon build and yourTests.exe is the generated exe in /bin/debug. I am using MSTest

    For more info on names generated look here

提交回复
热议问题