cucumber-reporting icon indicating copy to clipboard operation
cucumber-reporting copied to clipboard

Ignore Feature Level Cucumber Tags

Open rahulmangulkar opened this issue 2 years ago • 1 comments

Hello,

The cucumber tags can be applied on scenario level and feature level. My feature file is using tags on both levels. Please check below screenshot of my cucumber report. The @Reports tag is a feature tag and @AIMAGL-5164 is scenario tag. Having feature tag in cucumber report is messing my total calculations hence I would like to know is there any way to ignore feature level tags in cucumber report? I have already tried tags = {"~@Reports"} in TestRunner file but it doesn't work because whole feature file won't run. If there is no way to achieve this then can this functionality be added as enhancement?

image

rahulmangulkar avatar Feb 16 '23 17:02 rahulmangulkar

There are some possibilities which you can use. Please review https://github.com/damianszczepanik/cucumber-reporting/tree/master/src/main/java/net/masterthought/cucumber/reducers and decide which one suits your requirements. If none then additional code probably needs to be developed.

damianszczepanik avatar Feb 18 '23 14:02 damianszczepanik