cancel
Showing results for 
Search instead for 
Did you mean: 

Generating cucumber JSON report with unique name

anjwilliams8
Visitor

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? 

New Here?
Join us and watch the welcome video: