Skip to content

← All questions

Two Examples blocks, one @smoke and one @regression — lint says found @smoke @regression

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 one outline with a small set of rows in smoke and the long tail in regression:

gherkin
@ui
Scenario Outline: Shipping is calculated per country
  Given I am on the checkout page
  When I choose the country "<country>"
  Then the shipping cost should be "<cost>"

  # title-format: <country> → <cost>
  @smoke
  Examples: The two we always check
    | country | cost  |
    | DE      | 4.90  |
    | FR      | 6.50  |

  # title-format: <country> → <cost>
  @regression
  Examples: Everything else
    | country | cost  |
    | ES      | 6.50  |
    | PL      | 7.20  |
text
✖ features/checkout/shipping.feature:4  tags/suite  Scenario must carry exactly one suite tag (@smoke, @regression, @sanity); found @smoke @regression.

Both tables are tagged once. Is this rule just not aware of Examples-level tags?

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