Get @CucumberOptions tag property using System.getProperty()

后端 未结 2 978
没有蜡笔的小新
没有蜡笔的小新 2020-12-17 16:06

I am running a maven project in Eclipse for my Cucumber tests. My test runner class looks like this:

@RunWith(Cucumber.class)
@CucumberOptions(
        tags         


        
2条回答
  •  星月不相逢
    2020-12-17 16:21

    You can use the cucumber.options environmental variable to specify the tags at runtime

    mvn -D"cucumber.options=--tags @Other,@Now" test
    

    This supercedes the tags already contained in the test code.

提交回复
热议问题