Skip to content

← All questions

sdods lint: "Scenario must carry exactly one layer tag" on every scenario I have

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.

Ported a feature file over from our old cucumber project and lint rejects all of it.

bash
sdods lint -p demo-shop
text
✖ features/auth/login.feature:7  tags/layer  Scenario must carry exactly one layer tag (@ui, @api, @hybrid); found none.
✖ features/auth/login.feature:7  tags/suite  Scenario must carry exactly one suite tag (@smoke, @regression, @sanity); found none.
✖ features/auth/login.feature:14  tags/layer  Scenario must carry exactly one layer tag (@ui, @api, @hybrid); found none.
✖ features/auth/login.feature:14  tags/suite  Scenario must carry exactly one suite tag (@smoke, @regression, @sanity); found none.
1 feature file(s), 4 error(s), 0 warning(s)

The Gherkin is valid — it parses, the steps exist. What is a "layer tag", and does it belong on the Feature or on every single Scenario?

2 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