![]() A Rule should contain one or more scenarios that illustrate the particular rule.įor example: # - FILE: features/le_example.featureĮxample: Two - Dead and Reborn as Phoenix It provides additional information for a feature.Ī Rule is used to group together several scenarios The purpose of the Rule keyword is to represent one business rule that should be implemented. Yet if you encounter issues, check the documentation of your Cucumber implementation to make sure it supports it. ![]() It has been ported in a lot of Cucumber implementation already. The (optional) Rule keyword has been part of Gherkin since v6. ![]() You can write anything you like, as long as no line starts with a keyword.ĭescriptions can be in the form of Markdown - formatters including the official HTML formatter support this. Descriptionsįree-form descriptions (as described above for Feature) can also be placed underneathĮxample/ Scenario, Background, Scenario Outline and Rule. Independent of your file and directory structure. You can place tags above Feature to group related features, The free format description for Feature ends when you start a line with the keyword Background, Rule, Example or Scenario Outline (or their alias keywords). ![]() Their purpose is to provideĪ place for you to document important aspects of the feature, such as a brief explanationĪnd a list of business rules (general acceptance criteria). The name and the optional description have no special meaning to Cucumber. Is over when the Breaker guesses the Maker's word. The Maker makes a word for the Breaker to guess. The word guess game is a turn-based game for two players. These description lines are ignored by Cucumber at runtime, but are available for reporting (they are included by reporting tools like the official HTML formatter). You can add free-form text underneath Feature to add more description. The first primary keyword in a Gherkin document must always be Feature, followedīy a : and a short text that describes the feature. Of a software feature, and to group related scenarios. The purpose of the Feature keyword is to provide a high-level description Gherkin is localised for many spoken languages each has their own localised equivalent of these keywords. There are a few secondary keywords as well:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |