You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4ca22ec
Browse filesBrowse the repository at this point in the historyBrowse files
fix(provider-tck): follow the canonical gherkin/ prefix through the report
The reporting half names the canonical prefix in its own right: the emitter
refuses a payload whose uris are unsound, the canonical-set guard blames a
missing scenario by uri, and the tests assert on both. Those assertions were
written as the literal "features/", so the rename on the suite left them
pinning a prefix nothing emits any more.
The stale assertions fail loudly, which is the good case. The trap was the
README, whose worked example of a refused partial run printed two canonical
scenarios under features/ -- output no run can produce now, and the one place a
reader would have taken the old form from.
Test assertions move to CANONICAL_DIRECTORY rather than to a new literal, so a
further change to the prefix cannot leave them half-renamed. The single literal
pin lives on the suite branch beside the constant it pins, where the reason for
it is legible.
Two fixtures change shape rather than wording, and both still exercise what they
did. The shadowing adoption copies a canonical feature file into
extensions/gherkin/ so pytest-bdd names it gherkin/errors.feature -- the
canonical uri -- and the derivation has to hold it apart; and the refused
adoption hands scenarios() a directory of its own named gherkin, which is the
one route left to a canonical-looking uri. Renaming those directories to follow
the constant is what keeps them adversarial: pointed at the old name they would
now be ordinary extensions, and both tests would pass having examined nothing.
Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
0 commit comments