解决方法
您可以将您的场景标记为@ignore,这将被忽略.
如果要仅运行选择性场景,请将您要测试的每个新功能标记为@new_test.告诉Cukes Runner只运行tags = @new_test
import org.junit.runner.RunWith; import cucumber.api.junit.Cucumber; @RunWith(Cucumber.class) @Cucumber.Options(features = {"classpath:my_feature.feature"},tags = {"@new_test"}) public class RunCukesTest { }