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?
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.
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