Specrun命令行按功能名称过滤

时间:2016-08-28 08:50:06

标签: specrun

如何使用功能名称的过滤器

运行Specrun

Default.srprofile的片段:

<TestAssemblyPaths>
       <TestAssemblyPath>smth.dll</TestAssemblyPath>
</TestAssemblyPaths>
<Filter></Filter>
<DeploymentTransformation>

CMD: SpecRun.exe运行Default.srprofile / filter:“features:Feature:FeatureName”

这里来自github的例子:

  Scenario: Should be able to filter for feature
        Given the filter is configured to 'testpath:Feature:Feature_1'
        When I execute the tests
        Then the execution summary should contain
        | Total | 
        | 3     |

https://github.com/mikeborozdin/BDD-with-SpecFlow-and-White/blob/master/packages/SpecRun.0.13.0.72/docs/Filtering/03_TestPathFiltering.feature

0 个答案:

没有答案