trivago / cluecumber

Clear and concise reporting for the Cucumber BDD JSON format.
https://www.softwaretester.blog
Apache License 2.0
272 stars 90 forks source link

Allow report generation even if <customParametersFile> defined file does not exist #357

Closed NicoIodice closed 3 weeks ago

NicoIodice commented 2 months ago

Is your feature request related to a problem? Please describe. With we can define a file to customize the final report. This file should exist for the cluecumber plugin to generate the report. In our case, resource.properties file content is dynamically generated with a custom tool, thus the file should exist on git. When there are errors generating the properties file, the cluecumber report is not created. Is it possible to allow the generation of the cluebumer report even if this file does not exist?

Describe the solution you'd like Throw a warning for the user to easily identify that something is wrong with the resource.properties file defined in the , either for file not existent, or bad format, etc

Describe alternatives you've considered I've created the file in gitlab with no content and untracked it so my IDEA stops identifying this auto-generated file to commit and push. This is just a trivial nice-to-have feature :)

Additional context [ERROR] Failed to execute goal com.trivago.rta:cluecumber-maven:3.8.1:reporting (default-cli) on project automation-tests-reports: File '/builds/cgdpnce/pemp/cgd-corporateloans-e2e-automation-tests/automation-tests-reports/src/test/resources/report.properties (customParametersFile)' could not be found. -> [Help 1]

bischoffdev commented 2 months ago

This can be included in the next release.

bischoffdev commented 3 weeks ago

Ready for release in 3.9.0

bischoffdev commented 3 weeks ago

Released

NicoIodice commented 3 weeks ago

Thank you. Will update it :)