Skip to content

← All questions

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

Asked 12,840 views2 answers

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?

asked by Marijn Kuiper18,840 ·

2 answers

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

Related