~/talk

Consumer-Driven Contract: A better approach for API Testing

Talkat apidays Barcelona 2019 · 2019-09-12..09-13· [testing, api-design]
slides:none on file

Advocates replacing brittle mocks and slow end-to-end suites with consumer-driven contracts that generate Pact files from consumer tests, publish them to a Pact Broker, and have providers verify against those contracts by running an actual service and a state setup endpoint that seeds test data. Example builds a movies/reviews microservice pair, uses the Pact framework for JS providers and consumers, runs a year-long POC, and reports fewer integration breakages while requiring nontrivial CI/DevOps work to tag and verify contracts across teams.

AI-written summary · about

  1. 0:00Start
  2. 5:55End-to-End Testing
  3. 7:53Testing Pyramid
  4. 8:51Contract Testing
  5. 9:30Consumer-Driven Contracts
  6. 10:56How Would You Approach Contract Testing in Your Team
  7. 14:13Api Integration Testing
  8. 15:13How Would We Do It with Contract Testing
  9. 19:31Response Contract
  10. 21:53Provider Side Testing
  11. 23:38State Management
  12. 25:59Bad Practices in General around Contract Testing
  13. 26:50Benefits of Contract Testing Right Consumer-Driven Contracts
  14. 29:40Package Manifest
  15. 30:15Tagging a Contract
  16. 30:56How Would You Compare Packed with Postman for Contract Testing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.