specification by example

noun phrase
UK /ˌspesɪfɪˈkeɪʃən baɪ ɪɡˈzɑːmpl/
US /ˌspesɪfɪˈkeɪʃən baɪ ɪɡˈzæmpl/

A way of writing down what a computer program should do by using clear examples.

The team used specification by example to show exactly how the login page should work.


OTHER MEANINGS

2. A software development practice where examples of desired behavior are written before the code.

Specification by example helped the developers understand the customer's needs.

3. A method of documenting requirements using concrete examples instead of abstract descriptions.

Instead of a long document, they wrote specification by example with simple tables.

4. A collaborative way for business people and programmers to agree on what to build.

Through specification by example, everyone agreed on the rules for the shopping cart.