It is the second week of a code freeze before a quarterly release. Development stopped ten days ago, and the QA group has logged 63 defects against the release candidate, nine of them blockers. The developers are now fixing bugs in code they wrote six weeks earlier while the product manager negotiates which features to pull from the release. The steering committee asks the obvious question: how do we stop this from happening next quarter? The proposed answer is just as obvious: extend the freeze to three weeks and hire two more testers.
That answer feels responsible. It is also, in most teams, wrong. A longer freeze does not remove the cause of the defects. It gives the cause more room, and it makes the gap between “finished” and “actually ready” an official part of the schedule.
This article is for tech leads facing that decision. The position I defend is this: a single, short and strictly enforced Definition of Done protects quality more effectively than an extra testing phase, and in most teams the need for such a phase is a symptom that the Definition of Done is missing or nobody takes it seriously. I will cover what belongs on the list, how to enforce it automatically, how it works with external specialists and multiple vendors, and when independent verification is genuinely needed.
Why does an extra testing phase usually make quality worse rather than better?
Because it changes what “done” means. When a testing phase sits after the sprint, a developer closes a ticket knowing someone else will check it. That is not bad faith. It is the plain economics of attention: when there is a safety net, less effort goes into not needing it. More defects reach the testing phase, the phase grows longer, and the team learns that quality belongs to somebody else.
W. Edwards Deming described this mechanism decades ago. The third of his fourteen points in “Out of the Crisis” reads: cease dependence on inspection to achieve quality. His reasoning was that inspection at the end comes too late, because the quality is already in the product or it is not. Inspection can filter out some defective units, but it cannot produce good ones. Software works the same way. A tester at the end of the line finds defects, but does not make the code better designed, easier to test or less prone to regression.
The second problem is feedback delay. A defect found within the hour it was introduced takes minutes to fix, because the developer still has the context. The same defect found three weeks later requires rebuilding that context, often by a different person, and the fix may collide with code written in the meantime. You have probably seen the claim that a bug fixed in production costs a hundred times more than one fixed in design. It has no solid source. Laurent Bossavit traced the citation chain in “The Leprechauns of Software Engineering” and found it ends in decades-old IBM training notes with no published data behind them. The direction, though, matches most teams’ experience: the later a defect is found, the more work it takes to fix, even if nobody can honestly give you a single multiplier.
The third problem is batch size. A testing phase collects work from a whole sprint, or several sprints, and checks it all at once. The larger the batch, the harder it is to identify which change caused a failure, and the more changes are held hostage when one of them blocks the release. The DORA research programme (DevOps Research and Assessment, now part of Google Cloud) has shown for years that teams deploying frequently in small increments achieve higher throughput and higher stability at the same time. In the 2024 Accelerate State of DevOps report, the elite cluster made up 19% of respondents and had a change failure rate of around 5%. Those teams do not get there with longer testing phases. They get there because every change is ready when they finish it.
What exactly is a Definition of Done, and what is it not?
The 2020 Scrum Guide defines it precisely: the Definition of Done is a formal description of the state of the Increment when it meets the quality measures required for the product. The moment a Product Backlog item meets the DoD, an Increment is born. The most important sentence in that section, however, is this one: if a Product Backlog item does not meet the Definition of Done, it cannot be released or even presented at the Sprint Review. Instead, it returns to the Product Backlog.
That is a strong statement and worth reading twice. It does not say the item may be shown with a caveat, moved to a stabilisation phase or tested next sprint. It says the item is not finished, full stop. The Guide adds that developers are required to conform to the DoD, that multiple teams working on one product must define and comply with the same DoD, and that where the organisation has its own quality standard, every team must follow it as a minimum.
What is a DoD not? First, it is not a wish list. “The code is clean” or “the app is fast” do not belong on it, because nobody can verify them unambiguously. Second, it is not a document written once at project kick-off and filed in a wiki. A DoD nobody reads when closing a ticket does not exist. Third, it is not a tool for managers to police developers. It is an agreement the team makes with itself and its stakeholders about what the word “done” means.
The idea is not exclusive to Scrum either. Teams using Kanban apply the same mechanism as an explicit policy for moving work into the done column. If you are weighing which method suits your team, we covered that in our piece on choosing between Kanban and Scrum based on the kind of work you do. Whichever you pick, a list of completion conditions works the same way.
How does the Definition of Done differ from acceptance criteria and a Definition of Ready?
These three terms get mixed up constantly, and the confusion has practical consequences. A team that treats acceptance criteria as its DoD checks whether a feature does what it should, but not whether it is tested, secure and deployable.
Acceptance criteria differ for every story. They describe the behaviour of one feature: “a user with an expired subscription sees a renewal prompt”, “the export contains columns X, Y and Z”. The product owner usually writes them with the team, often as scenarios. They answer the question: did we build the right thing?
The Definition of Done is one list for every item. It describes the properties of all finished work regardless of subject: code review, tests, integration, security, documentation, deployability. It answers the question: did we build the thing right? An item is done only when it meets its own acceptance criteria and the entire DoD.
A Definition of Ready is a set of entry conditions: the story has acceptance criteria, dependencies are known, the design is available. The Scrum Guide does not mention it, although many teams use one. It can help, but it easily becomes a bureaucratic gate that nothing passes without a full set of paperwork. If you have to choose where to invest your energy, start with the DoD. A weak Definition of Ready delays the start of work. A weak Definition of Done ships work to production that is not ready.
A practical tip: if an item shows up in the acceptance criteria of nearly every story, such as “works on mobile” or “error messages are localised”, move it into the DoD. Acceptance criteria should carry what is specific to a story, not repeat the standard.
What belongs on the DoD of a team shipping production software?
There is no universal list, but some areas appear on a good DoD in almost every team that ships to production. Here is a starting version to adapt to your product.
Code and review. At least one person other than the author has reviewed the change. Review comments are resolved or consciously deferred with a ticket. The code passes static analysis and formatting with no new warnings.
Tests. New logic has automated tests at the right level: unit tests for logic, integration tests for the boundary with databases and external services, end-to-end tests only for critical user journeys. The full regression suite is green in the pipeline. Acceptance criteria have been verified, either automatically or through a recorded exploratory session.
Integration. The change is merged into the main branch. There are no “done” tickets living on feature branches waiting to be merged. The change runs in an environment that faithfully reflects production.
Security and dependencies. The dependency scanner reports no new critical vulnerabilities. New libraries carry acceptable licences. If the team maintains a software bill of materials, it is up to date. This matters more every quarter, as we explain in our article on why SBOMs are becoming mandatory.
Non-functional requirements. Accessibility has been checked to an agreed standard, which since the European Accessibility Act began to apply on 28 June 2025 has been a legal obligation for many consumer-facing products and services sold in the EU, not just good practice; teams selling to US federal agencies have long faced comparable Section 508 requirements. Key operations stay within agreed performance thresholds. Logs contain no personal data.
Operational readiness. New features have monitoring and alerts where needed. Database migrations are reversible or have a rollback plan. The change can be deployed without manual steps, and if it sits behind a feature flag, the flag is configured.
Documentation. Whatever must be current is current: API reference, support runbook, release notes. Not everything, only what somebody will actually read.
That list runs to well over a dozen items, and that is the ceiling, not the starting point. A team introducing a DoD for the first time should begin with five or six conditions it can meet every single time, not twenty it meets sometimes.
How do you write a DoD people actually follow instead of one that hangs on the wall?
Most failed Definitions of Done share a flaw: they were written as a statement of aspiration rather than a description of the real standard. The team wrote “80% test coverage” when it has 35%, and from day one every ticket breaks the DoD. Two sprints later nobody looks at it.
Rule one: every item must be verifiable as yes or no. “The code is well tested” is not verifiable. “New business logic has unit tests and coverage of changed lines is at least 70%” is. “Documentation is up to date” is not verifiable. “Every new or changed endpoint is described in the OpenAPI spec” is.
Rule two: measure the change, not the whole system. “Project-wide coverage above 80%” is unreachable in a codebase carrying technical debt and says nothing about the quality of today’s work. A condition on the coverage of changed code is achievable from day one and gradually lifts the whole. It is the same principle we describe in our guide to measuring and paying down technical debt: you do not need to fix everything to stop making it worse.
Rule three: record who verifies each item and how. If the pipeline checks it, name the step. If a person checks it, say when: at code review, at ticket close, at the Sprint Review. An item without a named verifier will be skipped under deadline pressure.
Rule four: let the team write the DoD, not a manager. The Scrum Guide says that where the DoD is not an organisational standard, the Scrum Team creates it. This is not about courtesy. The team knows the limits of its code and environments and knows which items are realistic. A list imposed from above will be satisfied on paper, which means ticking boxes.
Rule five: keep the DoD where work gets closed. The best places are a pull request template with a checklist, a transition condition in your work tracker, or required steps in the pipeline. A wiki page you have to navigate to separately gets read once, during onboarding.
Why is “done but not yet tested” the most expensive state a ticket can be in?
Because it is an in-between state nobody owns. The developer considers the ticket closed and has moved on. The tester has not picked it up yet, or has twenty others in the queue. The product owner sees green on the board and reports progress to stakeholders. Meanwhile the work is not finished and delivers no value until it reaches users.
This state carries costs that rarely appear in status reports. The first is a false picture of progress. The burndown says the sprint landed on plan, while a dozen tickets still need an unknown amount of work. Forecasts built on that velocity are systematically optimistic. The second cost is work in progress. “Done but untested” tickets increase the number of things the team must keep in its head and raise the risk of merge conflicts. The third cost is context switching: when a defect comes back, a developer drops current work to return to code from three weeks ago.
A stabilisation phase, often called a hardening sprint, institutionalises that state. Rather than eliminating it, the phase gives it a name and a slot in the calendar. A team that runs a hardening sprint every fourth sprint is effectively saying: for three sprints we produce work that does not meet our quality standard, and in the fourth we try to catch up. The trouble is that the fourth sprint is never enough, because undone work accumulates faster than the capacity to finish it.
It helps to look at this through a metric DORA added in its 2024 report: rework rate, meaning the share of deployments that were unplanned and made to fix user-facing bugs. A team with a stabilisation phase often has a respectable change failure rate, because it deploys rarely, but a large rework cost hidden before deployment. A team with an enforced DoD moves that cost to the point where it is cheapest: the moment the code is written.
Here is a simple test you can run this week. Count the tickets marked done in the last month that came back with a defect found before release. If it is more than a few percent, your Definition of Done is not working, however good it looks in the wiki. For more on which quality indicators are worth tracking and which merely look good on a slide, see our article on the QA metrics that actually matter.
When is an independent verification phase genuinely needed?
The argument of this article does not mean every separate testing phase is a mistake. A competent opponent will rightly point to situations where independent verification is required or sensible. It is worth naming them so they do not become an excuse for every other case.
Regulatory or contractual requirement. In medical device software, aviation, rail or industrial control systems, sector standards require documented verification, often with a degree of independence. In regulated financial services, change management and testing evidence are scrutinised by auditors. Large deliveries for external customers usually include acceptance testing and formal sign-off. These phases cannot be removed, and you should not try.
An environment the team does not have day to day. Testing on physical devices, integration testing with a partner system available only in fixed windows, or performance testing on production-like infrastructure. If the team cannot reach these during the sprint, somebody has to run them later.
Integrating work from many teams. When several teams build parts of one product and their work meets only at release time, the whole needs checking. The Scrum Guide answers this by requiring one shared DoD for all teams on a product, but in organisations still getting there, an integration step can be a necessary compromise.
The crucial difference is what enters that phase. Independent verification should confirm quality, not create it. Work entering customer acceptance testing should already meet the DoD: tested, integrated, deployable. If independent testers routinely find defects that should have been caught earlier, the DoD is too weak or not followed. That is a reason to strengthen the list, not to lengthen the phase.
A useful habit is to feed independent verification results back into the loop: every defect found at that stage is analysed with one question in mind, which DoD item should have caught it? If none, consider adding one. If an existing item, find out why it failed. After a few months that analysis shows whether the verification phase is becoming less necessary, in other words whether the system is learning.
How do you enforce the DoD automatically in a CI/CD pipeline?
A DoD item checked by a person will be skipped at the worst possible moment: Friday afternoon, before a deadline, when everyone is tired. An item checked by the pipeline will not be skipped, because skipping it requires a deliberate act. That is why a mature DoD hands everything machine-checkable to automation.
In practice it looks like this. The repository protects the main branch: no merge without approval from another team member and a green pipeline. The pipeline runs the build, static analysis, unit and integration tests, the dependency scanner and a coverage check on changed code. Each step corresponds to one DoD item. When one fails, the change does not reach the main branch and cannot be marked done.
These quality gates sit at the heart of the approach we describe in more detail in our guide to implementing shift-left testing. The Definition of Done is the layer that ties technical gates to the team’s agreement: the gates do the checking, and the DoD explains why those particular gates exist and what passing them means.
Three traps are worth knowing. The first is flaky tests. If the pipeline turns red at random, the team quickly learns to ignore it or rerun until green, and the gate stops protecting anything. A flaky test should be fixed immediately or quarantined with a ticket to fix it. The second trap is pipeline duration. If a full run takes an hour, developers will bundle changes into large batches, which raises risk and delays feedback. A fast pipeline is a precondition for an enforced DoD, not a nice-to-have. The third trap is exceptions. Every team occasionally faces an incident that needs a fix deployed immediately. Decide in advance who may bypass a gate, how that is recorded and when the missing items get completed. Without that procedure, exceptions become the norm.
Not everything can be automated. Exploratory testing, usability judgement or checking whether an error message makes sense need a human. Those items belong on the DoD too, but their place is during the work on a ticket, not after it. A tester exploring a feature alongside the developer on the day it is built gives the team far more than a tester who receives it three weeks later.
How does a DoD work with external specialists or multiple vendors?
This is where a Definition of Done is most valuable and, at the same time, where it is most often missing. When people from different companies work in one team, each brings their own habits about what “done” means. A developer who spent years in a team with a separate QA department will close tickets without tests, because that is how the previous process worked. Not because they are weaker, but because nobody told them it is different here.
That is why the DoD should be one of the first documents every new team member receives, whatever their employment arrangement. With external specialists it pays to go further and reference it in the contract or statement of work. A clause such as “work is accepted as complete when it meets the team’s Definition of Done in the version in force on the date the ticket is closed” moves the quality conversation from subjective impressions to a verifiable list. That protects both sides: the client knows what to expect, and the contractor knows when the job is finished.
When several vendors work on one product, the Scrum Guide’s rule acquires contractual weight. If one vendor applies a DoD with automated tests and code review and another does not, the product has the quality of the weaker one, and whoever integrates pays for the difference. One shared DoD for all teams on a product should be a condition of engagement, not a topic for negotiation after the first crisis.
If you are extending your team with external testers or automation engineers, the DoD is also the best tool for checking whether they have settled in. After two or three weeks, ask a simple question: does this person’s work meet the DoD without rework? If not, the problem is visible early and can be addressed with a conversation. When ARDURA provides QA engineers and testers through staff augmentation, a two-week replacement guarantee applies and a replacement is delivered within 5 working days. A clear DoD means the fit assessment during that period rests on facts rather than impressions.
How do you know whether the DoD is actually protecting quality?
A Definition of Done is a hypothesis: the team assumes that if all work meets these conditions, product quality will be acceptable. Like any hypothesis, it is worth testing. A handful of indicators tell you more than the team’s general feeling.
Share of tickets reopened after closure. How many tickets marked done needed more work because of a defect found before or after release? This is the most direct measure of DoD effectiveness. If it rises, the list has a gap.
Post-release defects mapped to DoD items. For every significant production defect, ask whether any DoD item should have caught it. If yes, find out why it did not. If no, consider a new item. That single habit keeps the DoD evolving with the product.
Change failure rate and rework rate. DORA’s measures track delivery stability across the team. They will not pin a problem on a specific DoD item, but they show the trend. If the change failure rate falls after you introduce or tighten the DoD while deployment frequency holds, the list is working.
Time from ticket closure to deployment. If a ticket meets the DoD, it should be deployable straight away. A long wait between “done” and “in production” means work is happening between those states that the DoD does not cover, which is a hidden testing phase.
DoD exceptions. How many times last month did the team close a ticket while knowingly skipping an item? A few exceptions during incidents is normal. Exceptions every week mean the DoD is unrealistic and needs adjusting, or the working conditions that break it need changing.
A caution: none of these indicators should become a target in its own right. A team judged on reopened tickets will stop reopening them and start creating new ones instead. The indicators exist to tell the team how well the DoD works, not to evaluate people.
How should a DoD evolve, and what might a three-level list look like?
A Definition of Done is not static. A team starting with six items may have twelve after six months, because in the meantime it automated regression tests, added a dependency scanner and learned to check accessibility. A good practice is to review the DoD at every few retrospectives with one question: what should we add so the defects of the last period do not return, and what is now redundant because automation checks it?
The rule for growth is simple: add an item only once the team can meet it every time. If you want performance tests on the list, first build the ability to run them in the pipeline, then run them in report-only mode for a few weeks, and only when the results are stable add the item to the DoD. The reverse order ends with a list everyone breaks.
Larger products benefit from a DoD at three levels: the individual change, the sprint Increment and the release. The table below shows one possible split. It is not a template to copy, but a starting point for a team conversation.
| Level | Example items | How verified | Who is accountable |
|---|---|---|---|
| Change (pull request) | Peer review by a second person; tests for new logic; changed-code coverage at or above the agreed threshold; no new static analysis warnings; no new critical vulnerabilities | Branch protection, pipeline steps, PR template | Author and reviewer |
| Backlog item | Acceptance criteria verified; exploratory session for UI changes; accessibility checked to the agreed standard; API reference and support note updated | Checklist on the ticket, review with the in-team tester during the work | Team, in-team tester |
| Increment (end of sprint) | Everything merged to main; full regression green; deployment to staging with no manual steps; monitoring for new features live | Deployment pipeline, Sprint Review | Team |
| Release | Migrations reversible or with a rollback plan; release notes; customer acceptance testing or independent verification where a contract or regulation requires it | Release checklist, sign-off record | Tech lead, product owner |
Look at the last row. Independent verification appears as a DoD item at release level, not as a separate phase that replaces the other levels. That is the difference between a team that verifies quality and a team that tries to bolt it on at the end.
If your team has no written test strategy from which these items could be derived, start there. A risk-based strategy says what to test thoroughly, what lightly and what to skip on purpose, and it makes every DoD item easier to justify.
How do you introduce a Definition of Done in a team that relies on a testing phase today?
Not overnight, and it is not worth trying. A team that has leaned on a separate testing phase for years lacks the habits, the automation and often the skills to take full ownership of quality within one sprint. Removing the testing phase without preparation will produce a wave of production incidents and a return to the old model, along with the conviction that “it doesn’t work here”.
A sensible path has five steps. Step one: write down what you already do. Before adding anything new, record as your DoD the conditions the team already meets on every ticket. It might be only code review and a green build. That is fine. What matters is that the list is honoured one hundred percent from day one.
Step two: move testers into the team. If testers sit in a separate department and receive builds at the end, bring them into the team and into sprint planning. Let them help write acceptance criteria and test features on the day they are built. This turns the tester from an inspector into a co-author of quality. In mid-2014 Microsoft formally retired the SDET role, the developer dedicated solely to testing, and merged it into a single software engineer role. Former employees’ accounts differ on the scale and effects of that change, and some test capability was later rebuilt, which is itself the lesson: the goal is to move ownership of quality into the team, not to eliminate testing expertise.
Step three: add items together with automation. Every new DoD item should come with a way to verify it. Regression tests for critical paths first, then a dependency scanner, then changed-code coverage. Choose the order based on where your most serious defects come from.
Step four: shorten the testing phase rather than deleting it. As the DoD covers more, the pre-release testing phase should find fewer defects. That is your signal to shorten it from three weeks to one, then to two days, and finally to replace it with automated deployment once release-level DoD items are met. If the phase keeps finding plenty, the DoD needs strengthening, not the phase lengthening.
Step five: measure the effect. Compare indicators before and after: reopened tickets, post-release defects, time from closure to deployment. Show the results to stakeholders. Most resistance to dropping a testing phase comes from people who remember the last outage. A few months of data is a better argument than any theory.
Google’s experience, described in “Software Engineering at Google” (2020), shows how long such a change takes in a large organisation. The authors write that until 2005, testing there was closer to a curiosity than a disciplined practice. Their Test Certified programme, which helped teams improve testing hygiene step by step, had five levels, each achievable within a quarter, and helped more than 1,500 projects. The authors’ conclusion is blunt: trying to assess product quality by asking humans to manually interact with every feature just does not scale.
Which Definition of Done mistakes should you avoid?
Even teams that understand the idea make a few recurring mistakes. Know them before they show up in yours.
A DoD too long to start with. A list of twenty items, half of them out of reach today, teaches the team that the DoD is fiction. Six items honoured always beat twenty honoured sometimes.
A DoD copied from the internet. Ready-made lists are good inspiration, but a DoD adopted without a team conversation does not reflect your product’s risks. A team building a payments platform needs different items from one building an internal reporting tool.
“Done” and “done-done”. If your team has two levels of completion and only the second means deployable, the second one is your real DoD. The first is a label for work in progress and should disappear from the board.
Partial credit. A ticket meets nine of ten items, so it is closed with a note. The Scrum Guide makes no provision for partially meeting the DoD and is consistent about it: an item that does not meet the DoD returns to the backlog. Every partial pass weakens the list for every ticket that follows.
A DoD that is never revised. A list unchanged for a year probably reflects neither current risks nor current team capabilities. Schedule a review, for example once a quarter.
No link to regulation. Legal requirements such as accessibility duties or vulnerability reporting should not live only in the legal team’s documents. If they apply to your product, their technical consequences belong in the DoD. The EU Cyber Resilience Act (Regulation 2024/2847) is a good example: manufacturers of products with digital elements must report actively exploited vulnerabilities from 11 September 2026, and the full requirements apply from 11 December 2027. Breaching the reporting duties can bring fines of up to €15 million or 2.5% of worldwide annual turnover, whichever is higher. A team that already keeps its component list current and acts on scanner findings as part of its DoD will be ready without a separate compliance project.
What are the key takeaways for a tech lead?
When release quality slips, adding a testing phase is the easiest decision to make and the hardest to reverse. It creates a feeling of control, but it changes what “done” means, lengthens the feedback loop and institutionalises work that nobody owns. A Definition of Done works the other way: it moves responsibility for quality to the moment the code is written and to the people who write it.
Remember six things. First, an item that does not meet the DoD is not finished and goes neither to the Sprint Review nor into a release. Second, the DoD is not the same as acceptance criteria: those say what a feature should do, the DoD says what all finished work looks like. Third, every item must be verifiable as yes or no, measure the change rather than the whole system, and have a named verifier. Fourth, everything a machine can check should be checked by the pipeline, because only then will the DoD survive deadline pressure. Fifth, independent verification makes sense where regulation, contract or environment demand it, but it should confirm quality, not create it. Sixth, with external specialists and multiple vendors, a shared DoD is a condition of engagement worth writing into the contract.
If you want to put your testing approach in order and derive a Definition of Done that fits your product’s risks, take a look at our QA strategy and test management package. It has a fixed scope, takes 2 weeks and starts from €3,700; it covers a risk-based strategy with entry and exit criteria, Jira and CI integration, and a handover workshop for your team. If you are short of hands, explore our software testing services or get in touch.