如何包括进行中的黄瓜测试,但不执行

我的一些黄瓜方案失败了,我想将它们标记为@wip,以便我仍然可以在Runner.java类中对其进行标记,但实际上不能运行它们。


我在.feature文件中标记失败的情况,如下所示:


@wip

Scenario Outline: BR001 - NEGATIVE - Description

我在Runner类中指定标签,如下所示:


@RunWith(Cucumber.class)

@CucumberOptions(

    plugin = {"progress",

            "html:build/report/cucumber/html",

            "junit:build/report/cucumber/junit/cucumber.xml",

            "json:build/report/cucumber/json/cucumber.json"

    },

    glue = {"qa"},

    features = {"src/test/java/features"}, 

    tags = {"@BR000,@BR004b, @BR007, @BR008, @BR009, not@wip"}

    )

public class QARunner {

如果我删除not @ wip,那么其他5个测试都可以通过。


我需要进行哪些更改,以便可以包括进行中的测试,但不能运行它们?


qq_花开花谢_0
浏览 148回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java