Hi Guys,Is there any way in cucumber-jvm that i can generate json report with feature file name ?
@CucumberOptions(plugin = { "json:<path/filename>.json" })
--plugin json:<path/filename>.json
@RunWith(Cucumber.class)
@Cucumber.Options(features = "src/test/resources/cucumber/examples/", format = {"pretty", "html:target/cucumber", "json:target/cucumber.json"})
public class AutoCorrectAT {
Thanks buddy,This is how i run the tests currently, all i need is to know how do i pass a custom_file_name.json instead of cucumber.json as below@RunWith(Cucumber.class)
@Cucumber.Options(features = "src/test/resources/cucumber/examples/", format = {"pretty", "html:target/cucumber", "json:target/cucumber.json"})
public class AutoCorrectAT {
}
-Dcucumber.options="--plugin json:<path/filename>.json <path/filename>.feature"