End-to-end test
An end-to-end (E2E) test checks that several scenarios work correctly together, including at the joints: the chain runs from a user’s first action to the final result through every part and system involved. Most often those systems belong to different teams, and the test catches what shows only at the joints, for example one system’s data does not fit another. Example: in an online shop one team creates the order, a second takes the payment, a third runs the warehouse; the E2E test places an order and checks that it was paid and reached the warehouse. The systems in such a chain usually correspond to bounded contexts of the business domain (orders, payment, warehouse), each with its own language and its own team, and the joints lie on the borders between contexts. In a narrower case the joints lie inside one team, between people or services. A unit test checks one small piece of code, a smoke test quickly confirms that the main things start, while an E2E test is slow and covers the whole chain, so there are fewer of them and they run on a stand.
Frequently asked questions
What is an end-to-end (E2E) test?
A check that several scenarios work correctly together and at the joints: the whole chain, often across systems of different teams.How is an end-to-end test different from a unit test?
A unit test checks one small piece of code and is fast. An end-to-end test checks the whole chain together; it is slower and more often breaks for unrelated reasons.How is an end-to-end test different from a smoke test?
A smoke test quickly checks that the main things start. An end-to-end test goes through a chain of scenarios in detail, joints included.Where are end-to-end tests run?
On a stand that is built like the live system, often on staging before a release.How is an E2E test related to bounded contexts?
Each system in the chain usually owns its own bounded context of the business domain, for example orders, payment or warehouse. An E2E test runs through these contexts and checks their borders: the words and data of one context must be translated correctly into the language of its neighbour.Who owns an E2E test when several teams are involved?
A joint belongs to everyone on it, so the teams agree in advance who maintains the test and who fixes it when it fails.Source: Wikipedia: System testing (end-to-end)