Skip to content

Repository that contains workshop projects for behavior driven development

Notifications You must be signed in to change notification settings

tom171296/TestingWorkshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

TDD/BDD Workshop

This workshop is designed to help you start or improve your Test Driven Development and Behaviour Driven Development skills.

What is TDD

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:

  1. Create Test
  2. Run Tests (should fail - Red)
  3. Write Code
  4. Run Tests (should pass - Green)
  5. Refactor

Repeat

What is BDD

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.

Quick start

To get started, go to the README of the desired language.

About

Repository that contains workshop projects for behavior driven development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published