Forum Discussion

anjwilliams8's avatar
4 years ago

Generating cucumber JSON report with unique name

I am using cucumber plugin to generate JSON reports, by default it is replacing the existing report. I want to preserve the results of previous runs to consolidate results across multiple runs.


@CucumberOptions(features = "features/test"
,tags = "@test"
, plugin = {"json:target/cucumber/report.json", "html:target/cucumber/report.html"})

Is there a way to append a timestamp in the report name for example report160220201145.json? 

No RepliesBe the first to reply