liveBook · Manning

End-to-end testing

As explained in Microservices Patterns, Second Edition

An end-to-end test exercises a complete application workflow across multiple services or system components.

End-to-end tests exercise an entire application across services. Making them a release gate ties each service deployment to a broad, multi-component test suite. section 1.3.4 section 1.3.1

In a microservice architecture, weigh the costs of running end-to-end tests before deploying a service:

  • Many moving parts make the tests slow and prone to random failures. section 1.3.4
  • Failures require manual review to decide whether a change is releasable. section 1.3.4
  • Move end-to-end tests out of the deployment pipeline; test each service in isolation in its own pipeline. section 1.3.4 section 1.3.1
Figure 1.13 Some, but not all, operations in a microservice architecture will span multiple services. Distributed operations are more complicated to design because services are process and transaction boundaries. This creates numerous design challenges since the network is not free, it’s unreliable, and not all services are guaranteed to be simultaneously available. You must also use an unfamiliar transaction model known as eventual consistency.
distributed operations challenges

Distributed operations can span services, where unreliable networks and service availability complicate testing across boundaries. section 1.3.4

How Microservices Patterns, Second Edition covers it

How deep it goes
Identifies delays, random failures, and manual release review, but does not describe test design or execution.
Examples
Uses testing the entire application before deploying an updated service as the release-gating example.
What you can do after
Evaluate release pipelines and move end-to-end tests out of them to avoid slowing service deployment.
How it connects
Connects end-to-end testing with microservices, independent deployability, and deployment pipelines.

Also explained in

Compare how 17 books explain end-to-end testing →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Microservices Patterns, Second Edition. The section links point to the parts of the book it draws on.