Styrow.dev
Question 23 of 27
Cucumber Topic: General medium

What is @CucumberOptions in test runner? List the properties of @CucumberOptions

Question

What is @CucumberOptions in test runner? List the properties of @CucumberOptions

Answer

@CucumberOptions are used to set specific properties for your cucumber test.

Properties are,

Feature - path to feature file
Glue - path to step definition
dryRun - boolean value - check for missing step definition
tags - used to group cucumber scenarios in the feature file
strict - boolean value - fail the execution if there is a missing step
monochrome - boolean value - display console output in a readable way