Reputation: 263
Trying to run a cucumber scenario with reporting to a JSON file, but for some reason the 'format' isn't working. It states 'cannot resolve method 'format'. I'm following a tutorial and can't understand why this isn't working. Any help would be appreciated, thanks
working with selenium/java/intelliJ/testNG
Upvotes: 2
Views: 2264
Reputation: 1996
Replace format with plugin as format option was deprecated from V. 1.2.0 onwards on 30-October-2014. Example below -
@RunWith(Cucumber.class)
@CucumberOptions(features = "classpath:features/functional/",
glue = {"com.jacksparrow.automation.steps_definitions.functional" },
plugin = { "pretty","json:target/cucumber-json/cucumber.json",
"junit:target/cucumber-reports/Cucumber.xml", "html:target/cucumber-reports"},
tags = { "@BAMS_Submitted_State_Guest_User" },
strict = false,
dryRun = false,
monochrome = true)
Upvotes: 7