Refuses a value that is neither a number nor the keyword
All 2 scenarios hold
The indexDepth option says how many levels of nested features get an index page of their own. The reporter writes the rest of the tree onto one page. Set the option on the CLI, Maven or Gradle surface, as a number or as the keyword "infinite".
The message repeats the value the reporter could not read, and names what it accepts. A value that does read as a number, but lies out of range, belongs to the rule above about the shallowest depth.
expected outcome
broken scenario
| Scenario | Option value | Error message? |
|---|---|---|
| A word that is not one | foo | Invalid index depth: 'foo'. Expected a positive integer or 'infinite'. |
| A number with a decimal | 1.5 | Invalid index depth: '1.5'. Expected a positive integer or 'infinite'. |