email2vimalraj / CucumberExtentReporter

A plugin to generate the cucumber jvm custom html report using ExtentsReport
http://www.vimalselvam.com/cucumber-extent-reporter/
MIT License
58 stars 74 forks source link

CucumberExtentReporter is not generated during runtime and Gherkin Keywords are repeated in report #85

Closed benz-philip closed 6 years ago

benz-philip commented 6 years ago

Below is the configuration in cucumber runner,

@CucumberOptions(features = "xxxx", glue = "cucumber.stepDefinitions", plugin = { "com.cucumber.listener.ExtentCucumberFormatter:", "rerun:output/rerun.txt" }, format = { "pretty", "html:target/Destination" } ,tags = { "@TestAuto" })

@BeforeClass public static void setup() { ExtentProperties extentProperties = ExtentProperties.INSTANCE; extentProperties.setReportPath("output/myreport.html"); }

@AfterClass public static void teardown() { Reporter.loadXMLConfig(new File("src/test/resources/extent-config.xml")); }

===========================================================

In previous releases, the extent report was generated once one feature is completed and was updated by completion of each feature

But in the latest version, the report gets generated only after the automation run is completed. we need to wait till the execution is completed to check the result. It impact if there are many number of features.

For me, the automation test execution is more than 2 days. I used to check the results in between. but it is not possible now.

And also, In reports, the gherkin keywords are repeated.. refer below, screen shot 2018-02-12 at 5 47 39 pm

If this is not issue, please suggest me the right implementation. Dont know if this is the right platform

email2vimalraj commented 6 years ago

@benz-philip : We never implemented to generate report files for every feature. May be it was working wrongly earlier, could have been fixed.

However, to help you out, you could have different runner class for each feature to overcome this problem.