Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/grasshopper7/extentreports-cucumberjson-plugin
- Owner: grasshopper7
- License: mit
- Created: 2020-07-10T09:27:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T04:52:58.000Z (over 1 year ago)
- Last Synced: 2024-11-07T12:26:46.597Z (about 2 months ago)
- Topics: cucumber-jvm, extentreports, java8
- Language: Java
- Homepage: https://ghchirp.online/2114/
- Size: 267 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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/).