anjwilliams8
4 years agoVisitor
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"
,glue="com.automation.cucumber"
,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?