Skip to content

← All questions

Lint passes but the run fails on a missing step — why is undefined-step checking opt-in?

Asked 5,730 views3 answers

Clean lint, then the run dies immediately on a step nobody wrote. Turning the flag on finds it:

bash
sdods lint -p shop --undefined-steps
text
✖ features/checkout/payment.feature:14  steps/undefined  Undefined step: Given I am on the checkout page
1 feature file(s), 1 error(s), 0 warning(s)

If it can find it, why is it not on by default? Feels like the most valuable check of the lot.

asked by Ingrid Solberg241 ·

3 answers

Know the answer?

Reviewed before it appears. Wrap commands and output in triple backticks and they will render as a code block.

Have a different question? Ask it.

Related