In brief
Entry criteria say when testing can start: the environment works, the build passed a smoke test, data and requirements are ready. Exit criteria say when testing can end and the release can ship: high risks tested, zero open critical defects, a green regression run, and accepted risk for the remaining defects. Criteria are written before testing, in numbers. When they are not met, the business owner decides on the release based on the report, not the test team.
Why criteria matter and where they come from
Without criteria, the release conversation sounds like this: "testing is almost done", "a few minor bugs are left", "I think we can go". The decision is made under deadline pressure and responsibility blurs between teams. Criteria turn that conversation into checking a list.
The ISTQB Foundation Level syllabus describes entry and exit criteria as part of test planning. In agile teams, their counterparts are the Definition of Ready (when a story is ready to work on) and the Definition of Done (when it is finished). The Scrum Guide describes the Definition of Done as a formal description of the state of the increment when it meets the quality measures required for the product. Criteria for a whole release or test phase go into the test plan.
Entry criteria: when testing can start
Testing started in an environment that is not ready means wasted days and false defects. A typical list:
| Criterion | How to check it |
|---|---|
| the environment is available and stable | all components at the listed versions, integrations respond |
| the build is deployed and passed a smoke test | a set of a dozen or so core path tests is green |
| test data is prepared | the listed accounts, policies and products exist in the system |
| requirements and acceptance criteria are approved | changes in the release scope have approved descriptions |
| blocking defects from the previous phase are closed | no open critical defects from integration testing |
| test cases are prepared and reviewed | cases for high risks are ready and approved |
When a criterion is not met, testing can start partially, for example in areas the gap does not affect. Record it, though, because the test window then starts on a different day than the schedule assumed.
Exit criteria: when a release may ship
Exit criteria must be measurable and agreed before testing. An example for an online banking release:
| Area | Criterion |
|---|---|
| coverage | 100% of cases for high risks executed, at least 90% for medium risks |
| critical defects | zero open |
| high defects | at most three open, each with a workaround accepted by the business owner |
| regression | the automated regression suite is green on the release candidate |
| non-functional tests | p95 response time for key operations within the SLA, a security scan with no critical vulnerabilities |
| documentation | the test report and the list of known defects handed to the owner |
The numbers in the table are an example. Each project sets its own, depending on risk. The test scope for each risk follows from the analysis described in Risk-based testing, and the state of defects from the process described in Defect management.
How to write measurable criteria
The most common mistake is a criterion nobody can check. The fix is usually simple:
| Instead of | Write |
|---|---|
| the system is stable | zero application restarts during 48 hours of regression testing |
| no serious bugs | zero open critical defects, at most three high ones with a workaround |
| testing is complete | 100% of cases for high risks executed, results in the tool |
| performance is acceptable | p95 for login and transfer below the value in the SLA |
| users accepted it | the UAT protocol signed by the listed process owners |
A good criterion has a number or a list, a data source (the test tool, a run report) and a person who confirms it is met.
When the criteria are not met
Exit criteria are rarely met in full on the planned release day. Then there are three paths:
- Postpone the release until the criteria are met. The safest option and the most expensive for the schedule.
- Release with risk acceptance. The business owner signs a list of unmet criteria and open defects with workarounds. The test team supplies the facts but does not make this decision.
- Narrow the scope. A feature that does not meet the criteria is switched off and the rest goes to production. Feature toggles make this easier, as described in Feature flags.
The lead tester's role here is clear: show the status without embellishment. A readiness report built on data from the tool rather than on teams' declarations is the basis for this decision.
Criteria across test phases
In a larger program, every phase has its own criteria, and one phase's exit criteria are the next phase's entry criteria:
- integration testing: integrations respond according to their contracts, no defects block the data flow,
- system testing: full functional scope, regression, first non-functional tests,
- user acceptance testing (UAT): business users have gone through key processes on production-like data,
- production readiness: the deployment and rollback plan is tested, monitoring is ready, on-call is arranged.
When a system is accepted from a vendor, UAT exit criteria in practice become the acceptance conditions. That was the case in the independent acceptance testing of a public e-services system. With test automation, regression runs in the pipeline with a clear results report, so some exit criteria are checked automatically on every release candidate.
Questions and answers
Who decides on a release when the exit criteria are not met?
The business owner or a release board, depending on the organization. The test team prepares the report: which criteria are not met, which defects are open, what the workaround and the risk are. The decision to release with risk is signed by the person accountable for that risk, and the signature stays in the release documentation.
Can exit criteria change during testing?
They can, but openly and with a reason, approved by the same person who approved the plan. Changing the criteria the day before release so the build "passes" is a sign that the criteria were unrealistic or that deadline pressure beat risk assessment. Both cases are worth discussing at the retrospective.
Does Scrum need exit criteria?
Yes, in a different form. For a story, the Definition of Done plays that role. For a release that combines work from several teams or requires acceptance testing by the business, you still need release-level criteria: regression, non-functional tests, open defects.
How many exit criteria are reasonable?
Usually five to ten. Too few and the criteria miss important risks, such as performance. Too many and nobody checks them all before release. A few criteria checked automatically in a report are better than a long list someone ticks off from memory.