无法运行黄瓜testrunner

时间:2020-10-08 07:46:22

标签: cucumber cucumber-java



import cucumber.api.junit.Cucumber;

import org.junit.runner.RunWith;
import testng.CucumberOptions;

@RunWith(Cucumber.class)
@CucumberOptions(
        features = {"classpath:src/test/java/qspromo/automation/features"},
        glue = {"stepdefination"},
        plugin = {"pretty", "html:target/html"}
        )

public class TestRunner {
}

接收:

在[classpath:qspromo / automation / testrunner]中找不到功能

0个场景 0步 0m0.000s

1 个答案:

答案 0 :(得分:0)

我的看起来像这样并且可以工作:

@CucumberOptions(
    plugin = "pretty",
    monochrome = true,
    tags = "not @wip",
    features = "src/test/resources/Features",
    glue = {"test.java.StepDefinitions"},
    junit = "--step-notifications"
    )
相关问题