💳 Secure Payment

Full-Service Web & Software Agency · Klamath Falls and Redding

Sean Dinwiddie technical articles — page 2

Work with Sean

Author: Sean Dinwiddie

Module 2: Behavior-driven development (BDD)

Microscope view of a triangular diatom with a fine lattice structure

Lesson 1

Module 2: Behavior-driven development (BDD)

Module 2 of the community course: behavior-driven development, from its principles through writing and reviewing scenarios to running them as tests.

Empty modern meeting room with a long black table and chairs

Lesson 2

Introduction to behavior-driven development (BDD)

A starting point for behavior-driven development: what problem it solves, the vocabulary it uses, and what it gives the owner and the team.

Curved, tiled panels of a building fanning out against a grey sky

Lesson 3

Principles of behavior-driven development (BDD)

The principles underneath behavior-driven development, and how each one shows up in the way a team writes and runs its scenarios.

Designers sketching mobile app wireframes on paper around a table

Lesson 4

How BDD aligns development with user expectations

How behavior-driven development keeps what gets built pointed at what users actually expect, and where that alignment tends to slip.

The Gherkin tower in London photographed from street level

Lesson 5

Given-When-Then (Gherkin) syntax in BDD

The Given-When-Then structure of Gherkin, and how to write scenarios in it that a non-developer can read and correct.

Person in a mustard sweater working on a laptop beside a window

Lesson 6

Writing BDD scenarios

How to write a BDD scenario that specifies real behavior, stays readable, and still fails when something is genuinely broken.

Hands typing on a laptop against a dark background

Lesson 7

Writing BDD scenarios for software modules

Writing BDD scenarios scoped to a single software module, so each one tests behavior rather than the whole system at once.

Hand drawing on a tablet with a stylus

Lesson 8

Creating BDD scenarios for real-world cases

Turning messy real-world cases into BDD scenarios, including the edge cases and failure paths that tidy examples leave out.

Three colleagues talking around a wooden table with open laptops

Lesson 9

Reviewing and enhancing BDD scenarios as a group

Reviewing BDD scenarios as a group: what to look for, how to run the session, and how to catch a scenario that quietly tests nothing.

Hands typing on a laptop set in front of a desktop monitor

Lesson 10

BDD and unit testing

Where behavior-driven development and unit testing overlap, where they do not, and how to use both without writing the same test twice.

Branching blue coral photographed against black

Lesson 11

BDD testing framework

What a BDD testing framework has to provide, and one cart scenario run both ways: as cucumber-js steps and as a scenario-named Vitest test.

Copyright Sean Paul Payne Dinwiddie
All Rights Reserved