忽略黄瓜功能文件的最佳方法?

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

我有一大套功能文件,每个方案都标记为@regression。运行完全回归后,我意识到某些功能不需要为当前环境运行。忽略特定方案的最佳方法是什么,请记住每个方案都使用@regression标记?

cucumber ignore feature-file
1个回答
0
投票

您可以使用Tags运行某些功能/方案,或不运行它们。

要明确忽略它们,请参阅Ignoring a subset of scenarios

“你可以告诉Cucumber忽略具有特定标记的场景:

使用JUnit运行者类:

@CucumberOptions(tags = "not @smoke")
public class RunCucumberTest {}

"

© www.soinside.com 2019 - 2024. All rights reserved.