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 75 forks source link

ExtentCucumberFormatter is not compatible with cucumber-jvm 2.0.0 #52

Closed mpkorstanje closed 4 years ago

mpkorstanje commented 7 years ago

The upcoming release of cucumber-jvm:2.0.0 will use an event based system rather then the hook based system. This means that ExtentCucumberFormatter will not work with cucumber 2.0.0.

To fix this the ExtentCucumberFormatter should implement cucumber.api.formatter.Formatter and then listen to these events. For a concrete example please see the JSONFormatter.

email2vimalraj commented 7 years ago

@mpkorstanje : Thanks for noticing me. I'll look into this and update accordingly.

krmahadevan commented 7 years ago

@mpkorstanje - Any place wherein I can look up on what is coming in 2.0 ? I would be particularly interested in knowing if the 2.0 is going to come out with parallelism support (especially at the scenario levels).

mpkorstanje commented 7 years ago

Sure: https://github.com/cucumber/cucumber-jvm/blob/master/History.md

Or try:

<repository>
    <id>sonatype-snapshots</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
</repository>

<dependency>
    <groupId>io.cucumber</groupId>
    <artifactId>cucumber-java</artifactId>
    <version>2.0.0-SNAPSHOT</version>
    <scope>test</scope>
</dependency>

But it is mostly bug fixes. Would recommend looking at:

https://github.com/temyers/cucumber-jvm-parallel-plugin for parallel support. It should be able to handle extents reports. If you fix https://github.com/temyers/cucumber-jvm-parallel-plugin/issues/127 you'll have the reports from each run aggregated into a single report.

MaximeRyckmans commented 6 years ago

Any update on this? I think it would be a very nice enhancement, as cucumber 2.0 is live now. No pressure of course, you have already done so much ;).

email2vimalraj commented 6 years ago

@MaximeRyckmans working on it.

krmahadevan commented 6 years ago

@MaximeRyckmans @mpkorstanje - Would you know if Cucumber 2.0 provides thread safe reports ? I am working on something that needs thread safe reports.

MaximeRyckmans commented 6 years ago

@krmahadevan I don't think so, have a look at this link: https://github.com/cucumber/cucumber-jvm/issues/630