Skip to content

← All questions

Where exactly does the "# title-format:" comment go? Lint still warns after I added one

Asked 7,130 views3 answers

Trying to clear this:

text
⚠ features/auth/login.feature:15  outline/title-format  Scenario Outline has no "# title-format:" comment; examples will be titled "Example #N".

I added the comment and the warning did not move. My file:

gherkin
# title-format: <username> → <error>

@ui @regression
Scenario Outline: Failed login shows a clear error
  When I login with "<username>" and "<password>"
  Then I should see the login error "<error>"

  Examples:
    | username        | password     | error                                   |
    | locked_out_user | secret_sauce | Sorry, this user has been locked out.   |
    | standard_user   | wrong        | Username and password do not match      |

Does it have to be in a particular place?

asked by Chandra Pillai873 ·

3 answers

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related