Two rams locking horns
Two rams locking horns
Photo by jean wimmerlin on Unsplash

In part 3 and part 4, I’ve explained how the two approaches to contract-based testing work. I’ve talked about the provider-driven approach in part 3 and the consumer-driven approach in part 4.

Contracts

In previous parts, I talked about the contents of each approaches contracts. The approaches are different, which results in different types of contracts.

Provider-driven


Photo by Annie Spratt on Unsplash

In part 3, I’ve started explaining how contract-based testing works. To that end, I’ve talked about the provider-driven approach.

Consumer-driven contract-based testing


Developer staring out the window
Developer staring out the window
Photo by Christina @ wocintechchat.com on Unsplash

In part 1, I’ve talked about what contract-based testing is. In part 2, I continued with why we should prefer contract-based testing over end-to-end testing.


Developer looking at his laptop with hand in his hair
Developer looking at his laptop with hand in his hair
Photo by Tim Gouw from Pexels

In part 1, I’ve talked about the basics of contract-based testing. I haven’t talked about the specifics of contract-based testing yet, I will do so in part 3.

End-to-end testing

When testing on an end-to-end environment…


Person holding a clipboard with some papers.
Person holding a clipboard with some papers.
Photo by cottonbro from Pexels

Modern software architecture promotes building tightly scoped, reusable applications. Because of this, big organisations have hundreds of applications working together at any given time. These applications talk to each other via their interfaces. These complex networks of applications can cause hard-to-trace bugs which are often difficult to test.


Image by xresch from Pixabay

TL;DR: See Conclusion.


I could not find a good human-readable resource about Problem. Therefore I’m writing it myself.

What is Problem JSON

Problem is a standardized way of describing any kind of error thrown by an API. A Problem can be described in JSON or XML, but we’re only going to talk about the JSON variant in this article.

HTTP/1.1 401 Unauthorized
Content-Type: application/problem+json…

Sander van Beek

Testconsultant @ Bartosz

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store