MDL-66109 behat: Prevent the use of Examples in Scenarios
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 22 Apr 2020 00:40:12 +0000 (08:40 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Mon, 11 May 2020 03:07:49 +0000 (11:07 +0800)
This change enables the Gherkin-lint rule to prevent the use of
"Examples" in a Scenario.

The Example tag is only allowed in a Scenario Outline at this time and
their use in a Scenario has no meaning.

.gherkin-lintrc

index a835723..50de756 100644 (file)
@@ -19,5 +19,6 @@
   "no-unnamed-features": "on",
   "no-unnamed-scenarios": "on",
   "no-scenario-outlines-without-examples": "on",
+  "no-examples-in-scenarios": "on",
   "new-line-at-eof": ["on", "yes"]
 }