My learning journey
01 Aug 2026
Ref: https://www.ministryoftesting.com/courses/modern-integration-testing-tools-techniques-and-strategies-for-continuous-quality/consumer-driven-contract-testing
Summary
Summary
- Project: Consumer/provider Pact contract for the GOV.UK VAT API. Important files: consumer.spec.js, provider.verify.js, and PACT_README.md.
- Outcome: Built consumer interactions and a verifier; learned practical pitfalls running Pact locally (permissions, port binding, large local caches).
What I've Learned
- Consumer-driven contracts: Write what the consumer expects (requests + example responses) and save it as a pact file — this documents real expectations and drives provider correctness.
- Two-phase workflow: Consumer test → produce pact JSON; Provider verification → run pact against provider (live service) to ensure responses match.
- Trust but verify: Pact lets consumers control the contract; provider verification prevents regressions and ensures real deployments satisfy consumers.
- Repeatability: Contracts make integration tests deterministic — no flaky network calls or external dependencies during consumer tests.
- Documentation value: Pact files are living API docs that help teams align on request/response shapes.
Shilpa Saraf
Test Engineer
She
A senior Quality Assurance Leader and Engineer with more than 20 years of experience delivering high‑quality, scalable digital products across the public sector and large enterprise environments. Consistent ability to design, implement, and embed robust test strategies for complex, distributed systems spanning APIs, backend services, and modern user interfaces.
Open To
Work
Write
Teach
Speak
Mentor
Meet at MoTaCon 2026
Review Conference Proposals
Rosie Sherry
Very cool to see this learning log!
Simon Tomes
Nice one, Shilpa. Great to see this. Thanks for sharing.
Sign in
to comment
Watch Virtualize Keep Testing Moving
Explore MoT
What I learned about influence by becoming a stakeholder
Go beyond with modern integration testing—with faster feedback, simpler debugging, improved scalability and maintainability. Take the step to implement new test types including contract testing of course.
Into the MoTaverse is a podcast by Ministry of Testing, hosted by Rosie Sherry, exploring the people, insights, and systems shaping quality in modern software teams.