cucumber-reporting
cucumber-reporting copied to clipboard
Generate Cucumber Report with Tags Excluded
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
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?