In brief
With weekly releases, regression cannot be one big suite run manually before deployment. What works is layering: a fast automated suite on every change, a fuller automated suite every night, and a short, targeted manual regression before release, chosen based on what changed and on risk. A regression plan means a weekly calendar, an owner of the suite and clear criteria for when to hold a release.
How regression differs from retesting
A regression test checks whether a change broke something that worked before. A confirmation test, also called a retest, checks whether a specific defect has been fixed. The ISTQB Foundation Level syllabus distinguishes the two types of tests because they have a different purpose and a different scope.
With weekly releases this difference matters organizationally. A retest is done for every fix and is tied to a specific ticket. Regression covers the whole system, and it is regression that grows every week, because each new feature adds another behavior to protect. Without a plan, the regression suite grows faster than the time the team has to run it.
Three layers of a regression suite
The suite is divided by when and how quickly it must give an answer:
| Layer | When it runs | Duration | Contents |
|---|---|---|---|
| Fast | On every merged change | Up to a dozen or so minutes | Unit, integration and contract tests, a few smoke tests |
| Nightly | Every night on the test environment | Up to a few hours | Full automated regression with E2E tests and data variants |
| Pre-release | Once a week before deployment | A few hours of human work | Manual and exploratory tests of areas changed this week |
The fast layer catches most defects before a change reaches the shared branch. The nightly layer checks combinations there is no time for during the day: other browsers, full data sets, integrations with external systems on stubs or in a partner's test environment. The pre-release layer is manual by choice, not for lack of automation: the tester checks what automation cannot judge, namely whether the new feature behaves sensibly next to the old ones.
How to distribute tests across levels is covered in the article on the test pyramid.
How to choose tests for pre-release regression
A full manual regression every week is unrealistic in a system with several hundred features. The choice draws on three sources:
- The week's change list. Tickets, stories and fixes going into the release, and the modules the code touched. Change impact analysis tools help, but an honest list from the developers is enough too: what I changed and what might interact with it.
- The risk map. Areas with high business impact get a test in every release regardless of changes: login, payments, premium calculation, invoicing. The method for determining such areas is described in the article on risk-based testing.
- Defect history. Modules where regression defects kept coming back in recent months are tested more often until the problem goes away.
In practice the pre-release suite consists of a fixed core of critical paths and a variable part chosen each week. The core is worth automating first, because it repeats in every cycle.
Changes that do not go through code need separate attention: a new tariff in configuration, a new document template, a parameter change in an external system. They are often missing from the week's change list, yet they can break calculation just like a developer's bug. That is why the change list also covers configuration and reference data, not only merged branches.
The release-week calendar
An example week for a team that deploys on Tuesday:
- Wednesday to Friday: development of new features, the fast layer on every merge, nightly regression every night. In the morning the team reviews the nightly run results and assigns failures right away;
- Friday: release scope freeze. Whatever has not been merged waits for the next week;
- Monday: pre-release regression on the pre-production environment, exploratory testing of new features, a release decision based on exit criteria;
- Tuesday: deployment, smoke tests in production, watching metrics and logs for a few hours.
Exit criteria must be written down before the week, not negotiated on Monday afternoon. Example: no open critical or serious defects in changed areas, nightly regression with no new failures, all core paths verified on pre-production.
Maintaining the suite, or how to keep it from bloating
A regression suite needs review just like code. Every few weeks it is worth checking:
- tests that never fail: whether they protect something important or check a feature nobody uses anymore. The latter are removed or moved to a less frequent run;
- tests that fail for no reason: these are flaky tests. They go into quarantine with an owner and a fix deadline, because a team that gets used to red results will stop reading them;
- duplicates: the same scenario checked through the interface and through the API. The version cheaper to maintain stays, unless the interface itself is a risk;
- test data: tests that depend on manually prepared accounts stop working after an environment refresh. Regression data is worth generating with a script before the run.
Every test in the suite has an owner, and the suite has a person responsible for its execution time. Without that, regression grows until it no longer fits in the night.
An example of regression automation ahead of recurring changes is the case study Regression automation for a policy system ahead of quarterly tariff changes.
Questions and answers
Can you do weekly releases without manual testing?
In some products, yes, but rarely in the systems of banks, insurers or telecom operators. Automation checks what someone anticipated. Exploratory testing of new features catches what nobody anticipated: an odd data layout, an awkward process, a collision with another feature. A reasonable goal is to automate the entire repeatable core and leave people a few hours to explore the week's changes.
What should we do when nightly regression has dozens of failures?
First group them: a defect in the system, an environment problem, an outdated test, a flaky test. A common cause, for example an unavailable external system, often explains most failures at once. Failures caused by a system defect get a ticket and a priority, outdated tests are fixed by their owner, flaky ones go into quarantine. The number of failures without a cause should drop to zero before the team starts trusting the results.
How long should the fast regression layer take?
As long as the team is willing to wait before merging a change without switching to other work. In many teams that is a few to a dozen or so minutes. When a run takes longer, developers start merging without waiting for the result and the layer loses its point. The time is reduced by moving tests to a lower level, running them in parallel and selecting tests by changed modules.
Who decides whether a release goes out despite open defects?
The product owner or the person responsible for the release, based on information from testers. The tester's role is to describe the risk: which defect, in which process, how many users it affects, whether there is a workaround. The business decision belongs to the business. Exit criteria written down in advance make that conversation take a few minutes instead of a whole afternoon.