allure-java
allure-java copied to clipboard
How to integrate allure report with io.cucumber latest version. Please provide some examples
How to integrate allure report with io.cucumber latest version. Please provide some examples
I've tried same like with Cucumber4 but have no success.
@CucumberOptions(
features = "src/test/resources/features",
glue = "ch.tamedia.steps",
plugin = {
"json:target/cucumber/RunnerResults.json",
"io.qameta.allure.cucumber5jvm.AllureCucumber5Jvm"
}
)
public class Runner {
private TestNGCucumberRunner testNGCucumberRunner;
@BeforeClass(alwaysRun = true)
public void setUpClass() {
testNGCucumberRunner = new TestNGCucumberRunner(this.getClass());
}
@Test(dataProvider = "features")
public void feature(PickleWrapper eventWrapper, FeatureWrapper cucumberFeature) {
testNGCucumberRunner.runScenario(eventWrapper.getPickle());
}
@DataProvider(parallel = true)
public Object[][] features() {
return testNGCucumberRunner.provideScenarios();
}
@AfterClass(alwaysRun = true)
public void tearDownClass() {
testNGCucumberRunner.finish();
}
}
Are there any solutions for this?
You can find updated and working examples in our allure-examples organisation.
Reference documentation available as well https://allurereport.org/docs/cucumberjvm/