Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一大套功能文件,每个场景都标记为@regression。运行完全回归后,我意识到某些功能不需要针对当前环境运行。记住每个场景都标有@regression,忽略特定场景的最佳方法是什么?
您可以使用标签来运行某些功能/场景,或者不运行它们。
要特别忽略它们,请参阅忽略场景子集:
“你可以告诉 Cucumber 忽略带有特定标签的场景:
使用 JUnit 运行器类:
@CucumberOptions(tags = "not @smoke") public class RunCucumberTest {}
"