Blog / Regression Testing in Agile: Put It in the Definition of Done
Guide

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.

TierRunsOwnerWhen it fails
PROn every pull request, in minutesThe pull request authorThe author fixes it before merging
SprintOvernight, several times a sprintThe QA lead, by nameThe owner triages it at the next standup
ReleaseOnce before release, with manual and exploratory checksThe release ownerThe 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.

  1. The PR tier passed on the merge commit.
  2. New behavior has a test, and the test has a tier.
  3. Each bug fixed this sprint ships with a test that reproduces it, in the sprint tier.
  4. 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 checkAutomate it whenKeep it manual when
Critical flow (login, checkout)The expected result is stableThe flow is being redesigned this sprint
Bug reproductionThe steps are known and repeatableIt needs a device or account you can’t script
New featureIt has survived a sprint unchangedRequirements are still moving
Look and feelRarelyA 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.

SprintTestsFull manual runWhat the team did
18013 h 20 minRan everything. The tester lost almost two days of the sprint
210016 h 40 minRan everything and moved the sprint review by a day
312020 hCut to “the important ones” and shipped a broken password reset
414023 h 20 minNamed owners, added the four Definition of Done lines and automated 12 critical flows as the PR tier
516026 h 40 minAutomated 58 more tests into a scheduled sprint tier, 70 in all. The manual set dropped to 90 tests, 15 hours, run at release only
618030 hAutomated 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.

Frequently Asked Questions

Regression testing in agile re-runs existing tests inside each sprint to confirm that new work hasn't broken what already shipped. It runs at several points in every sprint, from each pull request up to the release, rather than once at the end of a long project.
Say a story changes the password reset email. Its pull request re-runs the reset and login tests in minutes. That night the sprint tier re-runs the critical flows, and before release a tester walks through the reset by hand to check the email arrives.
The Scrum Guide makes Developers accountable for instilling quality by adhering to the Definition of Done, so regression sits with the people building the increment. In practice, name one owner per tier, from the pull request author up to a release owner, so the run never falls to whoever has time.
Usually, yes. Run regression first so that user acceptance testers see a build where existing features work, and spend their time on whether the new feature meets the business need. Finding an old feature broken during UAT wastes the people hardest to schedule.
Give each test a tier when it's added, and review the suite at the retrospective. Remove tests that duplicate lower-level checks and demote tests for features that no longer matter. Fix or quarantine any test that fails without a code change.
No. Automate tests that run often and have a stable expected result, which covers the pull request tier and most of the sprint tier. Keep manual time for features that are still changing and for the judgment calls a script can't make.
Yes. Pie drafts tests from the flows it reaches in your web, iOS or Android app, then runs your suites on a schedule you set, such as daily or on chosen weekdays. It can also test pull requests once a preview URL or build is set up.
Dhaval Shreyas
Dhaval Shreyas
CEO & Co-founder at Pie

13 years building mobile infrastructure at Square, Facebook, and Instacart. Now building the QA platform he wished existed the whole time. LinkedIn →