end-to-end-testing
Principles for writing and reviewing end-to-end tests in any language, framework or stack, meaning tests that run the whole assembled system and drive it from outside the way a real user or client does, through a browser, an app window, a public API, a command line or a message sent in. Use this whenever you write, change, review or debug an end-to-end, system, smoke, acceptance or user-journey test, or decide whether one should exist. Use it when choosing which journeys deserve such a test, where the test environment and its data come from, what to do about third-party services, how to log in and set up state, or whether to go through the interface or just beneath it. Use it when the suite is slow, flaky or ignored, when a failure does not say what broke, or when someone proposes covering an edge case or a bug fix with another end-to-end test. Also use it when briefing someone else to write these tests. For how to find, act on and assert against a user interface, use the ui-testing skill alongside this one. It is about how to think, not about any one tool's API.
Pinned to revision d53dc7371d06, so it is the text this page describes rather than whatever the author pushed since.
Files
Every link opens the file at its source, pinned to the revision this page describes.