Skip to content

perty/bdd-kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BDD kata

A BDD Kata using Cucumber. BDD is sometimes referred to as Specification by Example.

Cucumber is an implementation of the Gherkin language for specification. It also known as "given-when-then" as this makes the structure of a specification element. See Resources below for more information on the language.

Cucumber executes the specification and with the help of your glue code, it can interface with the system under test. Glue code is here referred to as "step definitions". Your IDE should understand this and help you with navigation from specification to step definitions. Also, it will help you write new step definitions when you add to the specification.

Instructions

  1. Read the Requirements document.
  2. Build using Maven. The build should be successful.
  3. Read the first specification in general.feature. Control-click on a line to find the steps definition, the glue code.
  4. Add scenarios for all requirements.
  5. Run the RunCucumberTest with coverage and see if you cover all code.
  6. Throw away the legacy implementation and rewrite it from scratch. All specifications should stay the same.
  7. Add scenarios for the new requirement, "Conjured".
  8. Implement the new requirement.

Resources

  1. Cucumber documentation
  2. Gherkin reference
  3. Specification by Example, the book

Credit

This kata is based on the GildedRose kata by Terry Hughes. See end of the Requirements document for more info.

About

A BDD Kata using Cucumber

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published