I am fixing one scenario in a feature that has eleven of them. Running the feature each time costs me two minutes per attempt, most of which is scenarios I am not touching.
What is the narrowest thing I can run?
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.
I am fixing one scenario in a feature that has eleven of them. Running the feature each time costs me two minutes per attempt, most of which is scenarios I am not touching.
What is the narrowest thing I can run?
Accepted answer
Three levels of narrowing, from coarse to fine:
sdods run -p demo-shop -e staging --feature cart/cart.feature
sdods run -p demo-shop -e staging --scenario "Removing the last item"
sdods run -p demo-shop -e staging --grep "last item|empty cart"--feature is a path relative to features/. --scenario matches scenarios whose title contains that text, which is the one you want here. --grep is a regular expression against the test title if the substring is not selective enough.
While you are iterating, add --headed --debug and watch it fail at the step. Do not leave either in anything committed — they need a display and a person.
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.