создали класс бегуна в (" test/core/e2e/cucumber ") Это выглядит как < /p>
Код: Выделить всё
@RunWith(Cucumber.class)
@CucumberOptions(
features = "test/core/e2e/cucumber/it/cucumber",
plugin = {"pretty"},
glue = {"test.policy.common.step"},
tags = "SetupTest")
public class TestMockClass {
}
Код: Выделить всё
@CucumberContextConfiguration
@ContextConfiguration(classes = { CucumberSpringTestConfig.class})
public class CucumberTestConfig{
}
Код: Выделить всё
@Configuration
@ComponentScan(lazyInit = true, basePackages = {"test.policy.common.*"})
@Import({ SpringConfig.class })
public class CucumberSpringTestConfig {
}
Подробнее здесь: https://stackoverflow.com/questions/794 ... es-feature