如何在运行的IntelliJ一个黄瓜情景?
我有一个简单的问题 - 我想运行一个单一的黄瓜的场景,但我似乎无法找到任何选项/配置
I have a simple problem - I want to run a single Cucumber scenario, but I can't seem to find any option/configuration for that.
我有5-6的情景,我可以设置配置,运行所有测试,但它需要太多的时间,当我纠正一个场景...
I have 5-6 scenarios and I can set up configurations to run all tests, but It takes too much time, when I am correcting one scenario...
标签与任何名义特性文件,您可以添加使用空格分隔多个标签。
Tag the feature file with any name, you may add multiple tags separated with spaces.
例如: @acceptance
@regression
现在,通过编辑配置中添加下面VM otions月底选项
Now, add below options in the end of VM otions by editing configuration
-Dcucumber.options="--tags @acceptance"
运行测试,并只会触发标记 @acceptance
您可以设置配置一个用于接受和一个回归或编辑你运行它的配置每次。
You can either set the configuration one for acceptance and one for regression or edit the configuration everytime you run it.