Regression Testing in Agile: Put It in the Definition of Done
Regression testing in agile gets cut because the suite grows every sprint and the sprint doesn't. Give each tier an owner and a line in your Definition of Done.
In a sprint, regression testing is the first thing cut. The stories are committed and the review is on Friday. The two days set aside to re-check everything that already worked become one day, then a quick pass over “the important ones.”
Regression testing in agile means re-running existing tests inside each sprint so new work doesn’t break what shipped. If you plan sprints and keep watching that run shrink, here is how to write it into the Definition of Done (DoD), so the sprint can’t close without it.
What you’ll learn
- Why the regression run is the part of a sprint that gets cut
- Three regression tiers, each with a named owner and a place in the sprint
- Four lines to add to your Definition of Done
- A worked example of a suite outgrowing its sprint, with the sums shown
Why Regression Breaks in Agile
Blame the shape of the sprint, not the team. Every sprint adds features, and every feature adds tests that need re-running in every later sprint. The suite grows each sprint while the sprint stays two weeks long. The run competes with new work for the same days, and new work has a product owner pushing for it. Pruning a slow regression suite is a separate job; this post is about who runs it and when.
Ownership is the second half. Ask who owns the regression run and the usual answer is “QA” or “everybody.” “Everybody” means the run happens when somebody has a free afternoon. “QA” means one person carries a job that grows every sprint, with no say in how big it gets. Naming the QA lead works only when that lead also decides what goes into the tier.
None of this is news to agile teams. The Agile Manifesto principles ask for development where the team can “maintain a constant pace indefinitely,” and a manual run that grows each sprint makes that impossible within a few sprints. Fix the owner before you fix the tooling.
A suite with no owner gets cut first.
What Regression Testing in Agile Looks Like
Regression testing re-runs tests you already have after a change, to check that what worked before still works. In a long project it happened once, in a test phase near the end. In agile there is no end phase, so it has to run in smaller pieces, often, inside the sprint.
Think of the suite as a gearbox. One gear for everything means all of it turns or none of it does, and when time runs short, nothing does. Three gears let the small, fast part turn on every change while the heavy part turns on a schedule.
Each gear maps to a trigger you already have, from the pull request through the sprint to the release. Lane budgets and nightly runs are pipeline settings, part of regression testing in CI/CD. The question here is who owns each piece and how it stays in the sprint.
One gear per trigger, and one name per gear.
Three Tiers and Who Owns Each
Give every regression test a tier when it’s written, and give every tier one owner, named at sprint planning. The table shows where each tier sits in the sprint and what its owner does when it fails.
| Tier | Runs | Owner | When it fails |
|---|---|---|---|
| PR | On every pull request, in minutes | The pull request author | The author fixes it before merging |
| Sprint | Overnight, several times a sprint | The QA lead, by name | The owner triages it at the next standup |
| Release | Once before release, with manual and exploratory checks | The release owner | The release waits for a fix or a signed-off risk |
The owner column is where the tiers earn their keep. A PR tier that holds up a merge for most of an hour gets skipped, so its author keeps it short. A sprint tier that fails every night gets ignored, so its owner triages failures at standup before anybody writes new code. No tier runs the whole library on every change. Each one picks the tests its trigger could have broken, and the retrospective is where the three owners agree what moves between tiers. Write the names into the sprint plan on day one.
Four Lines for the Definition of Done
Tiers stay in the sprint only if the sprint can’t close without them. The Scrum Guide defines the Definition of Done as “a formal description of the state of the Increment when it meets the quality measures required for the product,” and says an item that doesn’t meet it “cannot be released or even presented at the Sprint Review.” That gives regression a hard stop. Add four lines to your Definition of Done.
- The PR tier passed on the merge commit.
- New behavior has a test, and the test has a tier.
- Each bug fixed this sprint ships with a test that reproduces it, in the sprint tier.
- Sprint tier failures caused by this sprint’s work are triaged before the review.
Line three is the easiest one to drop under a deadline, and it decides whether the same bug comes back. Read the four lines out at sprint planning, so nobody learns about them at review.
Manual or Automated, Tier by Tier
The manual vs automated testing question has a different answer in each tier. The PR tier has to be automated, because it runs many times a day. The sprint tier should be mostly automated, because it runs while people sleep. The release tier is where manual time pays off.
| Kind of check | Automate it when | Keep it manual when |
|---|---|---|
| Critical flow (login, checkout) | The expected result is stable | The flow is being redesigned this sprint |
| Bug reproduction | The steps are known and repeatable | It needs a device or account you can’t script |
| New feature | It has survived a sprint unchanged | Requirements are still moving |
| Look and feel | Rarely | A person has to judge it |
Test automation has its own cost, which is upkeep. A scripted test needs fixing when the UI it touches changes, and that work also needs an owner. Budget the upkeep in the sprint tier owner’s time, or the automated suite rots the same way the manual one did. Move manual tests into automation every sprint, starting with the ones that run most.
How a Growing Suite Outruns a Two-Week Sprint
The math shows why the run gets cut, and what the tiers change. Take an invented team on two-week sprints, with every number made up to show the arithmetic. Its suite starts at 80 manual regression tests and adds 20 a sprint. Each manual test takes about 10 minutes, so a full manual run costs the suite size times 10 minutes.
| Sprint | Tests | Full manual run | What the team did |
|---|---|---|---|
| 1 | 80 | 13 h 20 min | Ran everything. The tester lost almost two days of the sprint |
| 2 | 100 | 16 h 40 min | Ran everything and moved the sprint review by a day |
| 3 | 120 | 20 h | Cut to “the important ones” and shipped a broken password reset |
| 4 | 140 | 23 h 20 min | Named owners, added the four Definition of Done lines and automated 12 critical flows as the PR tier |
| 5 | 160 | 26 h 40 min | Automated 58 more tests into a scheduled sprint tier, 70 in all. The manual set dropped to 90 tests, 15 hours, run at release only |
| 6 | 180 | 30 h | Automated 50 more. The manual release run of 60 tests took 10 hours, plus a two-hour exploratory session |
By sprint six a full manual run would take 30 hours, about four working days of a ten-day sprint. The tiered team spends 12 hours of people time at release, and the automated tiers run without anybody watching. The suite kept growing, and who pays for each part of it changed.
The trade-off is real. Sprints four to six cost the team automation time it didn’t spend on features, and the automated tests now need upkeep every sprint. Track both in the retrospective.
Run the Sprint Tier on a Schedule
A Definition of Done line needs a run behind it, and the sprint tier is the hardest run to keep going. It’s big, it has to run often, and its tests are the ones the team never finds time to write.
Pie, our agentic testing platform, takes the writing and the running off the team. It explores your web, iOS or Android app and drafts tests for what it finds, so the tier starts the sprint with tests instead of a backlog.
Your team sorts those tests into suites. A Loop runs each suite every weekday or on a custom cron, and on iOS and Android it can also run each time a new build uploads, once you add that trigger.
What’s left for the owner is the judgment. Related failures arrive grouped as issues, so standup starts from a short list instead of every red run, and the owner decides what blocks the sprint. The release tier stays with your team.
That gives the Done line something to check, a sprint-tier run that happened and an owner who read it.
Name the Owner Before the Sprint Starts
Regression testing in agile survives when the Definition of Done won’t let a sprint close without it, and each tier has a person who answers for it. A growing suite is fine once each part of it has somebody deciding how it runs.
Of the three, the sprint tier is the one that goes unnamed. It’s the biggest of the three, and no story on the board depends on it.
At the next sprint planning, write three names on the board, one per tier, and read out the four Definition of Done lines. If nobody volunteers for the sprint tier, name someone anyway and hand Pie the running of it, so that person’s job is reading results, not executing tests.
See Your Sprint Tier Run Every Day
Get your critical flows tested on a schedule your sprint can hold.