You are on page 1of 1

#Interviewer: What are the different Cucumber Options?

In your Test Runner, @CucumberOptions are used to set some specific properties for
the Cucumber test.

• features: path of your feature files, i.e. where scenarios are described in BDD
format using Gherkin language (Given-When-Then).
• glue: path of the step definition files, i.e. where implementation of above BDD
statements is available.
• dryRun: to check if all steps in a scenario (feature file) have a corresponding
step definition implemented.
• tags: instruct to execute specific tags in the feature files.
• monochrome: to enable more readable console output.
• format: what all report formatters to use.
• strict: fail the execution in case there are undefined/pending step definition.

You might also like