IT lexicon › Programming › BDD

BDD Behavior-Driven Development

Programming På svenska → Updated: 2026-05-26

Testing style describing behaviors in natural language: Given-When-Then. Dan North, 2003. Riff on "outside-in TDD" — start from the user's perspective.

Cucumber (2008) + Gherkin syntax is the classic impl. Spec: Given user logged in / When she clicks Buy / Then order is created. Pitch: product owners can read the tests. In practice: scenario files are poorly maintained, BAs stop contributing, becomes just complex TDD with an extra layer. RSpec (Ruby) popularized BDD DSL for developer style. Mocha + Jest BDD syntax (describe/it) is another interpretation — just a new name for unit tests.

← Back to the lexicon