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
答案 0 :(得分:0)
我的看起来像这样并且可以工作:
@CucumberOptions(
plugin = "pretty",
monochrome = true,
tags = "not @wip",
features = "src/test/resources/Features",
glue = {"test.java.StepDefinitions"},
junit = "--step-notifications"
)