Guide
Test impact analysis: which tests does a change actually affect?
Published
Every release raises the same question: which tests do we need to run again? Running all of them is safe but slow and expensive. Picking a few by hunch is fast and risky. Test impact analysis answers the question from evidence. It compares two versions of your application and tells you which tests the difference touches.
The cost of running everything
A full regression run gives the most confidence and costs the most. Every test needs browser or API time, every run holds a slot in your pipeline, and every execution spends credits: in TAIP a web execution costs 1 credit and an API execution costs 0.2. As the suite grows, running all of it for a one-line change becomes a tax on every release.
The usual shortcut is human judgement. Someone reads the change and picks the tests that look related. That works until the change touches something nobody connected to a test, and the test that would have caught the problem is the one that was skipped. Test impact analysis replaces the hunch with a comparison: what actually changed, and which tests depend on it.
Snapshots: a fixed record of the application
The comparison needs something stable to compare. In TAIP, discovery explores your running application and captures its routes, flows and API surface as a snapshot you can keep and come back to. A snapshot records the pages, forms, buttons, links and API endpoints it found.
Snapshots are numbered in order for each application: 1, 2, 3 and so on. Once a snapshot is finalized it cannot be edited, so version 2 is still version 2 next month.
Before two snapshots are compared, TAIP removes the noise that changes on every visit: timestamps, session and trace identifiers, and the query string and trailing slash of each URL. If two captures have the same structure, they are recognised as identical and the comparison returns no changes at all.
The change set: what appeared, disappeared or changed
Point TAIP at two snapshots and it produces a change set: what appeared, what disappeared, and what changed shape between them. Each entry is about one thing in the application, such as a route, a form, a field, a button, a link or an API endpoint.
Renames are the hard part. A button that went from “Checkout” to “Continue to payment” is the same button, but a naive comparison reports one removal and one addition. TAIP matches elements on the same page conservatively. When it is confident that two elements are the same one, the entry is a change. When it is not, you get a removal and an addition, so nothing is hidden from you.
The four classes of impact
With a change set in hand, TAIP looks at what each test depends on, such as the routes it visits, the elements it interacts with and the API endpoints it calls, and sorts every test into one of four classes. Each classification comes with a reason you can read, so you are never asked to trust a label.
Direct
The test visits a route that changed, interacts with an element that changed, or calls an API endpoint that changed. These tests must run again. Confidence is high.
Indirect
The test does not touch the changed thing itself but depends on it through a parent. The case TAIP detects today is a test that uses a nested route, such as /checkout/payment, under a route that changed, such as /checkout. These tests should run again too, with medium confidence.
Possible
Nothing links the test to the change for certain, but the names are similar enough to be suspicious: the route a test uses resembles a changed route. These are the ones to look at by hand. Confidence is low or medium, and when a match is ambiguous TAIP reports it as possible rather than dropping it.
Untouched
No dependency of the test matches anything in the change set. These tests do not need to run for this change. Confidence is high.
You choose how wide the net is: direct only, direct and indirect (the default), or every affected test, which adds the possible ones. The tests in the chosen group are the recommended regression, and TAIP can run it.
A worked example
This example is illustrative, not a customer case. A shop has five tests. Between snapshot 1 and snapshot 2, the change set has a single entry: the /checkout route changed.
Buy with a saved card
Direct. It opens /checkout, the route that changed. Run it.
Apply a voucher at payment
Indirect. It uses /checkout/payment, a nested route under /checkout, which changed. Run it.
Pay with express checkout
Possible. It uses /express-checkout, whose name resembles the changed route. Look at it, and run it if the pages share content or code.
Log in
Untouched. It uses /login, which is not in the change set. Skip it.
Filter the invoice list
Untouched. It uses /invoices, which is not in the change set. Skip it.
Out of five tests, two are recommended by default and one is flagged for review. Two do not run. The result is a smaller run chosen for a stated reason, instead of all five run out of caution or two picked from memory.
What it does not do
Test impact analysis is an optimization, not a proof of safety. TAIP's own impact view says as much: a recommended regression is based on what the tests depend on and on routing metadata, and it is not absolute proof that nothing broke.
It compares snapshots of the running application, not your source code or your commits. A change that alters nothing a discovery run can observe, such as an internal refactor, produces no entry in the change set.
It only analyses tests whose version is frozen, which means validated and no longer editable. A test that is still a draft is never recommended. And possible matches rest on similar names, so expect some false alarms. That is deliberate: it is better to look at one test too many than to miss one.
Try it on your own application
Capture your first snapshot, change something, capture again and see which class TAIP puts each test in. Free Basic is free forever, with 500 credits a month and no credit card.