How to migrate a test suite without interrupting regression testing
Updated:
Concern about interrupted regression checks can postpone a test-suite migration even with a clear technical plan.
The assumption goes like this: the old suite is switched off, the new one takes three months to write, and releases go out blindly in the meantime. Nobody wants to sign off on that, so the migration is postponed until the next quarter. The cycle continues until the suite reaches the end of its life on its own.
It does not have to happen this way.
Common problem: reliable checks are missing during migration
A suite is not one indivisible unit that can only be migrated all at once. It is a collection of scenarios, and each has a different weight. Requirements and error consequences determine the importance of purchases, payments or footer text. Page location alone does not determine priority.
When you look at the suite this way, moving everything at once no longer makes sense. Migration can proceed in stages, with each part entering use once verified. You do not have to wait for the entire suite to be finished.
How to maintain checks during the migration
Analysis and order. First, we determine what the suite actually covers. After assessing coverage, we leave out obsolete or redundant scenarios. First assess a long-skipped test according to expectation validity and risk. We rank the rest by how much it hurts when the scenario fails.
A pilot on one scenario. We use one important journey to verify the new suite’s architecture and stability before anything else is migrated. If something in the design is wrong, we discover it in one test, not two hundred.
Gradual migration. We move scenario by scenario in priority order. The first migrated scenario enters the pipeline immediately, not only at the end of the project. You see value from the beginning rather than only at handover.
Both suites temporarily run side by side. Until the migration is complete, the old suite can check scenarios that have not yet moved, while the new one checks those that have already been verified. A scenario map must continually confirm the retained coverage, the stability of both suites needs to be monitored, and gaps need to be minimised. This does not automatically mean the same level of confidence on every day of the migration.
The overlap is useful in its own right. When the same scenario runs in the old and new suites and the results differ, the test, data, environment, timing, and expected outcome need to be investigated. The difference alone does not determine which suite is correct.
Retiring the old suite. The old suite is switched off only after everything important has been migrated and the new suite runs reliably. Not before.
We used this approach when replacing an existing test automation solution, with the old and new suites running in parallel until the replacement had been verified.
Maintain one map of current coverage
The number of rewritten files does not show what the team actually checks for a release. For each important risk, record the scenario, expectations, data and environment conditions, owner and suite whose result is used. Distinguish “written” from “executed and accepted”.
ISTQB’s traceability section also recommends connecting requirements, risks, tests and results. The following table is our illustrative model of operating states during migration:
| Scenario state | What provides the check today | Decision required |
|---|---|---|
| Not yet migrated | A valid, runnable test in the old suite | Migration order and maintenance owner |
| Overlapping | Both suites with comparable expectations | Cause of differences and replacement acceptance conditions |
| Accepted in the new suite | A verified new test included in the agreed run | Retiring the particular old check and any return path |
| Uncovered or skipped | No trustworthy automated result yet | Repair, replacement, manual verification or explicitly accepted risk |
A risk must not disappear from the map because its old test was left out of the migration. Confirm an obsolete requirement or genuine duplication with the appropriate owner. Long-term skipping can indicate a technical problem in a scenario that still matters.
Parallel runs need comparable conditions
Both suites need the same application version and comparable inputs. This does not mean sharing a mutable account. If both tests modify one basket or cancel the same order concurrently, they can cause each other’s failures. Use separate data with matching properties or scheduled independent runs with state reset.
When results differ, compare specific assertions. A new test may pass merely because it checks a successful response, while the old one also verifies the saved amount. Conversely, the old test may still expect a rule that changed. Neither the number of green runs nor a newer framework decides which check is correct.
For each difference, record the application version, data, expectation and both results. The product owner confirms valid behaviour, while the technical owner repairs the check or environment. Mark an unclear outcome as open until resolved. Running both suites increases operating costs, so agree on the overlap’s purpose and exit conditions.
Check actual test selection before taking over
After a move, CI may select different files, tags or projects from a local run. Check the planned execution configuration and resulting report. Playwright Test’s --list reports selected tests without executing them. For Python, pytest offers collection with --collect-only -q. These are different runners whose settings do not transfer merely by renaming a file.
A listing verifies selection, rather than successful scenario execution. Follow it with an actual run in the intended environment. Check access, data preparation, report delivery and failure response. If the new test remains outside scheduled execution, completing its rewrite has not restored coverage.
When to retire the old check and how to return
Agree on acceptance conditions before takeover:
- The new test verifies valid expectations and agreed data combinations.
- It detects a known incorrect change in a safe environment, rather than merely failing during setup.
- Failures and any retries from repeated runs under agreed conditions have been assessed.
- CI selects the test, the report is available and a designated person reviews the result.
- The coverage map contains remaining gaps and decisions about their risk.
Choose repetitions and overlap duration according to risk. There is no universal number of green runs. Retain the old configuration version and a way to restore its check while it remains usable. If the old tool no longer works, the return plan needs another replacement or agreed manual verification.
If takeover exposes a gap or the new suite fails to deliver a report, pause further retirement and restore the agreed check. Returning does not remove the need for diagnosis. After migration, remove redundant CI jobs, accounts and dependencies only once no other check uses them. Hand over maintenance instructions and a record of accepted exceptions too.
What a gradual migration gives you
A migration during which you do not have to plan to disable every regression check for the entire transition. Risk remains managed according to which scenarios are still in the old suite and which have already been verified in the new one.
If priorities change, the migration can be paused after the work in progress is completed. Migrated and verified scenarios remain in the new suite, while the others stay in the old one. The team must, however, maintain an overview of scenario ownership and both codebases in operation.
We design the new suite for easier maintenance, for example with an appropriate layer of page or component objects, stable identifiers, and separate test data. The architecture itself does not replace ongoing maintenance when the application changes.
What to watch out for when estimating
The duration depends on the number and complexity of the scenarios, the state of the original code, dependencies, and environment readiness. Some obsolete or duplicate tests may not need to be migrated, but an agreed scenario map needs to confirm that the intended coverage has been retained.
Next step
Show us what you have today and tell us which journeys must remain covered throughout the transition. Contact us and we will propose the migration order, a coverage map, and a way to minimise gaps during the migration.