This workshop is designed to help you start or improve your Test Driven Development and Behaviour Driven Development skills.
Test Driven Development or Test First Development is a process that consists of turning the requirements of the software application into specific test cases (acceptance criteria) and then implement the source code.
This process uses the red/green/refactor pattern and consists of the following steps:
- Create Test
- Run Tests (should fail - Red)
- Write Code
- Run Tests (should pass - Green)
- Refactor
Repeat
Behaviour Driven Development is a methodology that specifies acceptance criteria using a syntax that can be managed by business and by technology. The most well known implementation for this syntax is Gherkin.
The Gherkin syntax has 3 main components that are represented by the following keywords:
-
Feature - maps to a feature of the software. e.g.: Login
-
Scenario - maps to a particular scenario of the usage of the feature.
-
Step - a step of the scenario. A step starts with one of the following keywords:
- Given - used for definition of context.
- And or When - used for events.
- Then or But - used for assertions.
To get started, go to the README of the desired language.