如何在Resharper中运行单个Specflow场景

Die*_*ego 10 bdd specflow resharper-6.0

我正在使用Specflow(http://specflow.org/)编写一些集成测试,我想运行一个Scenario.有没有办法用Resharper 6运行单个场景?顺便说一句,我配置specflow来使用MSTest.

我的Specflow测试看起来像:

Feature: Customer management

Scenario: Add a new Customer into system
    Given the User has entered the customer with the following data
    | name  | last_name | birthday   |
    | Peter | Stein     | 12.09.1955 |
    When the User has pressed the Save Button
    Then the following customer should be stored in the data base
    | name  | last_name | birthday   |
    | Peter | Steim    | 12.09.1955 |

Scenario: Second scenario.....

Scenario: Third scenario.....
Run Code Online (Sandbox Code Playgroud)

我想只运行第一个场景.

Kei*_*ows 10

如果您正在运行ReSharper,我只需打开功能文件,右键单击方案中的任意位置,然后从弹出菜单中选择"运行Specflow方案".它只运行您所处的场景.

请注意,我正在使用ReSharper来运行测试.