Skip to content
EN · PT

Gate: examples-match

Every row of an outline’s Examples is run by a test citing the scenario.

Property Value
Checker examples-match
Confronts feature
Blocking by default — new project yes
Blocking by default — existing project no — informs
Duplicates a declaration it controls repeated in one file fails it; duplicates: false switches this off

A scenario outline says “for each of these rows”; the parameterised test that proves it runs its own table, and nothing kept the two together. In the reference app they drifted apart in eight features: the Examples said mesada and the test allowance, “Crédito” against “Cartão de crédito”, and a row the code no longer had at all.

The gate reads no test library. Every value of a row must appear in the body of a test that cites the scenario’s code, as a whole token and with its case. The body is read as test-has-assertion reads it. Examples often show what the screen says while the test uses a key: a column whose header carries (label), in any supported language, is display text and is not looked for.

gates:
- name: examples-match
on: [feature]
check: examples-match

Source: checker · its spec