我试图从maven命令设置黄瓜标签(通过命令行maven命令) . 我使用Junit runner和cucumber选项来指定运行并指定黄瓜选项(格式,功能......) . 在maven调用我的Junit运行器之前,如何将标签设置为黄瓜选项 .

摘录:

Junit Runner

@RunWith(Cucumber.class)@CucumberOptions(features = {“src / test / resources / Features”},glue =“com.xxxxx.stepDefinition”,// tags = {“@ run123”},format = {“漂亮“,”html:target / site / cucumber-pretty“,”json:target / cucumber.json“})

公共类RunTest {

}