Keeping a regression suite useful: prune, speed up, trust
By Denis Bojkovski, Test Automation Architect · Published November 25, 2026
Suites only grow
Regression appeared in 36 of the 86 full descriptions on QAAnywhere on 25 November 2026. Every escaped defect adds a test and nothing removes one, so a suite that was quick becomes an overnight job whose results arrive too late to matter. Maintenance is choosing what still earns its place.
Measure first
Export the last thirty runs and calculate for each test:
- Duration.
- Failures that led to a product fix.
- Failures that did not: test fault, data, environment.
- Last change, and owner.
Sort by the third. A handful of tests normally produces most of the noise. A test that has failed twenty times without ever finding a defect is costing more than it gives.
Delete with a reason
Remove a test when:
- The feature is gone.
- A lower-level test covers the same risk, and you have proved it by breaking the product.
- Nobody can say what it protects.
- It repeats another with trivial differences.
Put the reason in the commit message. Version control keeps the test if you were wrong. Teams hesitate to delete because nobody wants to be blamed for the escaped defect; agreeing the rules beforehand removes the fear.
Fix or quarantine
An unreliable test should leave the blocking set the same day. Quarantine means it still runs, its result is visible, it has an owner, and it has a date. After that date it is fixed or deleted. Quarantine without a date is a slow deletion that still costs machine time.
Keep a limit, for example ten tests. When it is full, the team must repair one before adding another.
Make it faster, in this order
- Remove duplicated set-up. Signing in through the interface in two hundred tests is usually the greatest single cost.
- Move checks down to API or unit level.
- Split the longest tests.
- Run in parallel, after making tests independent.
- Select by change. Run what a change could affect on a pull request, everything on merge. Wrong selection misses faults, so keep the full run.
- Buy machines.
Teams tend to begin with the last.
Readability is maintenance
A test nobody understands cannot be maintained. Names should state behaviour: Refund_is_rejected_after_90_days, not Test_Refund_3. One reason to fail per test, where practical. Put important values in the test rather than in a distant file.
A monthly half hour
- The five slowest tests.
- The five noisiest.
- Quarantine: what is past its date?
- Escaped defects: which level should have caught each?
- What did we delete?
Publish one line: run time, reliability (runs that were green or red for a true reason), and number of tests. Falling test numbers with steady escapes is good news; say so, or management may read it as neglect.
Taking over an old suite
Do not rewrite at once. Run it for two weeks, classify each failure, and talk to the people who wrote it. Choose the ten journeys the business could not lose, make those reliable, and make only those block a release. Everything else is optional until it proves itself. Trust returns from a small reliable core, not from a large promise. For the diagnosis of individual failures, see flaky tests in CI.