@ContextConfiguration
@SpringBootTest(classes = {Config.class})
public class StepDef {
// Spring Context will be created by this class. You can autowire beans here.
// All the step definitions for Cucumber will be defined here.
// This class is where Junit test cases are written.
}
@RunWith(Cucumber.class)
@CucumberOptions(features = "src/test/resources",
format = {"pretty",
"html:target/cucumber-html-report",
"json:target/cucumber-json-report.json"}
)
public class CucumberTest {
// This class stays blank.
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.