Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/grasshopper7/cucumber-pdf-plugin

Generates Cucumber execution report in PDF format
https://github.com/grasshopper7/cucumber-pdf-plugin

Last synced: 7 days ago
JSON representation

Generates Cucumber execution report in PDF format

Awesome Lists containing this project

README

        

## Cucumber PDF Report Plugin

Refer to this [article](https://ghchirp.site/2224/) for more details. [Sample implementation](https://github.com/grasshopper7/cucumber-pdf-plugin-report) and ![Sample Report](https://github.com/grasshopper7/cucumber-pdf-plugin-report/blob/master/cucumber-pdf-plugin-report/pdf-report/report.pdf)

The below configuration needs to be added to the project pom to setup the PDF report plugin.

```

tech.grasshopper
cucumber-pdf-plugin
1.14.0


report
post-integration-test

pdfreport




${project.build.directory}/json-report

```

**Plugin Configurations**

| Configuration | Description | Default |
| :----------- | :----------- | :----------- |
| cucumberJsonReportDirectory | Directory location of cucumber json reports. Required. | |
| cucumberPdfReportDirectory | Directory prefix of location of generated pdf report | report |
| cucumberPdfReportDirectoryTimeStamp | Directory suffix of location of generated pdf report. Assign null explicitly to ignore default value | dd MM yyyy HH mm ss |
| strictCucumber6Behavior | Cucumber 6 Strict behavior | true |
| title | Report title | Cucumber PDF Report |
| titleColor | Report title color in hex without leading # | Black |
| passColor | Pass status color in hex without leading # | Green |
| failColor | Fail status color in hex without leading # | Red |
| skipColor | Skip status color in hex without leading # | Yellow |
| displayFeature | Display feature report section | true |
| displayScenario | Display scenario report section | true |
| displayDetailed | Display step detailed report section | true |
| displayExpanded | Display media as zoomed report section | false |
| displayAttached | Display media as pdf attachment | true |
| skipHooks | All passed hooks are hidden | false |
| skipScenarioHooks | All passed Scenario hooks are hidden | false |
| skipStepHooks | All passed Step hooks are hidden | false |

Many other report settings can be configured by using a yaml file as described in the [article](https://ghchirp.tech/2224/)

**DASHBOARD**

![sample](https://raw.githubusercontent.com/grasshopper7/cucumber-pdf-plugin/master/cucumber-pdf-plugin/dashboard.png)

**SUMMARY**

![sample](https://raw.githubusercontent.com/grasshopper7/cucumber-pdf-plugin/master/cucumber-pdf-plugin/summary.png)

**TAGS**

![sample](https://raw.githubusercontent.com/grasshopper7/cucumber-pdf-plugin/master/cucumber-pdf-plugin/tags.png)

**FEATURE SECTION**

![sample](https://raw.githubusercontent.com/grasshopper7/cucumber-pdf-plugin/master/cucumber-pdf-plugin/feature.png)

**SCENARIO SECTION**

![sample](https://raw.githubusercontent.com/grasshopper7/cucumber-pdf-plugin/master/cucumber-pdf-plugin/scenario.png)

**DETAILED SECTION**

![sample](https://raw.githubusercontent.com/grasshopper7/cucumber-pdf-plugin/master/cucumber-pdf-plugin/detailed.png)

**MEDIA**

![sample](https://raw.githubusercontent.com/grasshopper7/cucumber-pdf-plugin/master/cucumber-pdf-plugin/attach.png)