The Australian Government coat of Arms

Communities of practice

Communities of practice

Consumer-Driven Contract tests** (CDC tests)

Hi all,

In an article I posted in the learning section on the Testing Pyramid (https://martinfowler.com/articles/practical-test-pyramid.html), I ran across the below concept that may be worth exploring further. What do people think? I think it is an excellent idea, if you have an organisation structure that supports sharing of the literal technical contracts at the required level and social or organisational contracts in place with producing teams to support your CDC test…

Consumer-Driven Contract tests (CDC tests) let the consumers drive the implementation of a contract. Using CDC, consumers of an interface write tests that check the interface for all data they need from that interface. The consuming team then publishes these tests so that the publishing team can fetch and execute these tests easily.