You've probably heard of the BDD testing style, using Given, When, Then


You've probably heard of the BDD testing style, using Given, When, Then.

Just saw a test suite using this style, but calling well-named functions prefixed with given, when, or then for readability.

Gotta say, the resulting code reads like an english statement. Quite nice.

View original on X