Skip to content

Behaviour testing

Alan B. Christie edited this page Feb 24, 2026 · 2 revisions

Behaviour testing ("Behaviour-Driven Development", BDD), is part of a "Test-Driven Development" (TDD) paradigm. BDD provides you with a way to declare tests using a language that describes the software's behaviour a way that anyone can read, and execute.

A test (a feature) is a simple narrative that consists of Given, When, and Then statements.

Unfortunately behaviour tests rely on adapter code (Steps) that you write that translate the test language into specific actions against the application being tested. Implementing the step logic can require significant effort but, at the end you will be able to construct tests that non-developers can understand.

Behaviour testing in Python

In Python the behave framework provides you with a Behaviour-Driven Development execution engine and an experimental set of tests were constructed in the fragalysis-stack-behaviour-tests repository.


Clone this wiki locally