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

Generate Cucumber Report with Tags Excluded

Open fajaranshari opened this issue 1 year ago • 1 comments

Hi, I have a question. in jenkinsfile I want to exclude tags overview and report-tag HTML to not be generated because we have an issue with disk usage. I tried to use

def conf() { def configuration = new net.masterthought.cucumber.Configuration( new File("${Configs.final_report}"), 'Your Project Name' ) configuration.setTagsToExcludeFromChart(".*") return configuration } and call the conf() on

cucumber fileIncludePattern: 'all_test_result.json', jsonReportDirectory: "${Configs.final_report}", buildStatus: 'FAILURE', failedScenariosNumber: 0, trendsLimit: 25 pluginConfig: [ [$class: 'CucumberTestResultArchiver'], [$class: 'CucumberReportPublisher', config: conf] ] But seems like the tags-overview still generated. Do you have a suggestion? Thank you

fajaranshari avatar Sep 05 '23 04:09 fajaranshari

If should accept regexp https://github.com/damianszczepanik/cucumber-reporting/blob/master/src/main/java/net/masterthought/cucumber/json/deserializers/TagsDeserializer.java#L29 - did you try with simpler configuration?

damianszczepanik avatar Sep 10 '23 06:09 damianszczepanik