golf umbrella
golf umbrella

Reputation: 263

Cannot resolve method 'format' in Cucumber reporting

enter image description here 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

Answers (1)

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

Related Questions