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