trivago / cluecumber

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

[Question] change field feature name #313

Closed Ripki-Dev closed 1 year ago

Ripki-Dev commented 1 year ago

hello, I new using karate and cluecumber. i use this report because this report is very cool & have much detail information. when i run karate test, I got json that have value like this.

Jepretan Layar 2023-08-01 pukul 13 31 46

in cluecumber table report will show like this (i think this data is parse from relativePath in json file), CMIIW

Jepretan Layar 2023-08-01 pukul 13 32 28

my question is, can i change from relativePath to name for fill the data tables report?

bischoffdev commented 1 year ago

Thank you for this, I will look at a way to do this.

bischoffdev commented 1 year ago

I checked this. This information is not contained in the Cucumber JSON file (there the feature name is set as the feature file name) but in an additional file called karate-summary-json. Since Cluecumber only uses the Cucumber JSON format, this would be an additional step that is Karate exclusive. To have the feature name here, the way that Karate writes these JSON files has to be modified so that the feature name is written there. So this is an issue that should rather be reported in the Karate repo.