Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/grasshopper7/extentreports-cucumberjson-plugin

This deals with generating Extent reports for Cucumber-JVM version 4.3 and above by using a Maven Plugin which parses the Cucumber JSON report.
https://github.com/grasshopper7/extentreports-cucumberjson-plugin

cucumber-jvm extentreports java8

Last synced: 7 days ago
JSON representation

This deals with generating Extent reports for Cucumber-JVM version 4.3 and above by using a Maven Plugin which parses the Cucumber JSON report.

Awesome Lists containing this project

README

        

This deals with **generating Extent reports for Cucumber-JVM**, version 4.3 and above, by using a **Maven Plugin which parses the Cucumber JSON report**. For more details refer to this [article](https://ghchirp.site/2114/). Sample implementation can be found [here](https://github.com/grasshopper7/extentreports-cucumberjson-report).

The **plugin version 2.0.0** uses **ExtentReport version 5** which deprecates many reporters other than **Spark, Json and Klov**. This plugin also includes a **custom [Pdf reporter](https://github.com/grasshopper7/cucumber-pdf-report)**. A ported version of the HTML extent report is also generated. The Spark, Json, Pdf and Html reports are enabled by default. Use the below **configuration** for the plugin.

```

tech.grasshopper
extentreports-cucumberjson-plugin
2.16.0


report
post-integration-test

extentreport




${project.build.directory}
${project.build.testResources[0].directory}
false
true

```

To use ExtentReports version 4 use the plugin version 1.6.0 in the POM. Refer to **Plugin Configuration** section in the [article](https://ghchirp.tech/2114/).

The Cucumber Json report is created with the below **setting in the Cucumber runner**. Refer to **Cucumber JSON Formatter Setup** section in the [article](https://ghchirp.site/2114/).
```
@CucumberOptions(plugin = { "json:target/json-report/cucumber.json"})
```

**Plugin Configuration** -
| Property | Type | Default | Description | |
| ---------------------------- |:---------:|:-------:|-------------------------------------------------|-----------------------|
| **cucumberJsonReportDirectory** | mandatory | | directory path of the JSON report | |
| **extentPropertiesDirectory** | optional | | directory path of the project extent.properties | |
| **displayAllHooks** | optional | false | flag for all hooks are to be displayed | |
| **strictCucumber6Behavior** | optional | true | flag to set undefined step to failed | Available after 2.0.0 |

Refer to **Plugin Configuration** section in the [article](https://ghchirp.tech/2114/).

**Report Settings** - The Spark, PDF, HTML and Json reporter are enabled by default. Refer to **ExtentReport Settings** section in the [article](https://ghchirp.site/2114/).