0

如何使用功能名称过滤器运行 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

4

0 回答 0