SpacialCircumstances / gradle-cucumber-reporting

A gradle plugin to generate pretty HTML reports for Cucumber from json report files.
GNU Lesser General Public License v2.1
15 stars 10 forks source link

How to support ReducingMethod.MERGE_FEATURES_BY_ID? #23

Closed MichelleZhou-airwallex closed 3 years ago

MichelleZhou-airwallex commented 3 years ago

when I run ParallelCucumber by SCENARIO level, the report will not merge the scenarios for the same feature. I found that the cucumber reporter already support this feature, merge features by ID, so how can I apply this? thx~

the related issue link: https://github.com/jenkinsci/cucumber-reports-plugin/issues/172

SpacialCircumstances commented 3 years ago

I have released a new version that supports configuring the reducing method!

You just need to add:

...
reducingMethod("MERGE_FEATURES_BY_ID")
...

into the plugin configuration.

I hope this works for you, else, feel free to report back!

MichelleZhou-airwallex commented 3 years ago

I have released a new version that supports configuring the reducing method!

You just need to add:

...
reducingMethod("MERGE_FEATURES_BY_ID")
...

into the plugin configuration.

I hope this works for you, else, feel free to report back!

cool, it works. thx for the quick upgrade~

cucumberReports {
...
reducingMethod(net.masterthought.cucumber.reducers.ReducingMethod.MERGE_FEATURES_BY_ID)
...
}