Cap*_*paj 4 protractor cucumberjs
我有多个功能文件,我真的很想只运行一个文件或只运行一个场景或只运行一个标签.我知道我可以在我的cucumberConf.js中提供我的规格中的一个文件,但是我想在没有摆弄我的cucumberConf.js的情况下运行一次.运行量角器时我需要输入哪些参数?
在量角器的配置中:
cucumberOpts: {
...
tags: [
"@runThis",
"@runThat",
"~@ignoreThis"
];
...
},
Run Code Online (Sandbox Code Playgroud)
在功能文件中
@runThis
Scenario: Run this Scenario
Given user does some action
Then something should happen
@ignoreThis
Scenario: ignore this Scenario
Given user does some action
Then something should happen
Run Code Online (Sandbox Code Playgroud)