I wanted the regression scenarios that are mocked, so I asked for both tags:
sdods run -p demo-shop -e staging -t @regression,@mockIt ran considerably more than either tag has on its own. I expected a comma to mean "and". What does it mean?
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 wanted the regression scenarios that are mocked, so I asked for both tags:
sdods run -p demo-shop -e staging -t @regression,@mockIt ran considerably more than either tag has on its own. I expected a comma to mean "and". What does it mean?
Accepted answer
Or. A comma list is shorthand for an or-expression, so -t smoke,sanity is "@smoke or @sanity" and yours was every regression scenario plus every mocked one. The @ is optional in that form, which is the only reason the shorthand exists.
For anything else, write the expression and quote it:
sdods run -p demo-shop -e staging -t "@regression and @mock"
sdods run -p demo-shop -e staging -t "@regression and not @mock"It is Cucumber tag-expression syntax, so and, or, not and parentheses all work.
Quote it on Windows even when the expression is a single tag. A bare @-prefixed token is splatting syntax in PowerShell, so -t @smoke can be mangled before the CLI ever sees the argument. -t "@smoke" is unambiguous everywhere and costs you two characters.
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.