Skip to content

← All questions

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

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

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.

3 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related