zeal
zeal

Reputation: 475

Store cucumber reports into different working directory

The working directory where I run tests are read only and so my cucumber runner fails to create the report directory.

So, is there any way to specify different directory to plugin option?

@CucumberOptions(
         features = "resources/features",
         glue = "stepdef",
         plugin = {"pretty", "json:<custom_path>"} ,
         tags = {"@test1"}
  )

Here, by 'custom_path' I mean something outside of my package directory where I will have read access.

Upvotes: 0

Views: 2928

Answers (1)

Mate Mrše
Mate Mrše

Reputation: 8394

You can change reports directory. Here is an example from here:

@CucumberOptions(plugin = {"pretty" ,"html:Folder_Name" ,
                           "json:Folder_Name/cucumber.json" ,
                           "junit:Folder_Name/cucumber.xml"}) 

Upvotes: 1

Related Questions