Cucumber:Maven:Dcucumber.options:如何拥有多个标签,其中之一是忽略标签,如“NOT @tag”

问题描述 投票:0回答:0

我正在尝试使用以下命令使用 Maven 运行 Cucumber Scenarios:

mvn clean install -Pgeneric-runner -Dmaven.test.failure.ignore '-Dcucumber.options=--tags @tag1 and not @tag2'

上述 Maven 命令失败。但是,当我从命令中删除“not @tag2”部分时,它执行得很好,没有任何失败。

. 是否可以修复上面的 maven 命令,以便它可以执行具有“@tag1”的场景并排除任何具有“@tag2”的场景。

请求帮助。提前谢谢你。

maven cucumber cucumber-java mvn-repo
© www.soinside.com 2019 - 2024. All rights reserved.