Basic Gherkin Syntax
Preamble? Why Bother?
If the feature paragraph isn't really used by the testing framework, then
what is the point of all that typing?
Feature
preamble exists.If feature files were only useful to the test runner, it would be reasonable
to leave the preamble empty.But feature files are also used by human beings, perhaps days or weeks in the future.If a feature has been in the backlog for a while, team
members may have lost their original context (or that context may have
gone 'stale' as the system concept has evolved).Some reminders may be helpful.
The preamble records the abstract concept that is
illustrated by the concrete scenarios that follow it.
illustrated by the concrete scenarios that follow it.
(Reading...)
Formatting Hints:
To format... | use this markup: |
---|---|
source code | {source:lang=java|lineNumbers=false}...{source} (Supported languages: java, cpp, csharp, c, python.) |
bold text | __some text__ |
italicized text | ~~some text~~ |
underlined text | @@some text@@ |
a method or class name | ``myMethod(...)`` |