How test impact analysis works

For the full index of agent-friendly pages, see llms.txt.

Test impact analysis (TIA) answers one question from your AI coding agent: which of my existing mabl tests does this code change affect? This article explains how mabl arrives at that answer. For the step-by-step workflow, see validate code changes with test impact analysis.

From a code change to a description

When you ask your coding agent which mabl tests are impacted by your changes, you don’t need to describe the changes yourself. TIA handles it for you. Your mabl tests never mention the files in your code, so TIA doesn’t look for them. Instead, it translates those code changes into a description written in the same language your mabl tests are written in, looking for related pages, controls, and flows. If the change includes updates to a shared component, TIA will look for every test that interacts with that component.

Each analysis is scoped to one application in mabl. A change that touches more than one application is analyzed once per application and the results are combined.

mabl searches the content of your tests against that description, matching on both wording and meaning. For example, a test that says “checkout” can match a change described as “purchase flow”. The search reads test names, descriptions, and steps.

Based on this search, mabl returns a prioritized set of tests:

A large set of results generally indicates that your code changes are broad, often because they touch shared code. In this case, TIA organizes and groups the set of tests rather than trimming it to look tidy.

With a knowledge graph

Note: Early access

Knowledge graphs are available in early access, and pricing and packaging are subject to change. We will be rolling them out to customers over the coming months. If you’d like access sooner, reach out to your customer success manager.

The search described above works on any workspace. If your application has a knowledge graph, TIA uses it alongside the search. The knowledge graph maps your application’s pages, workflows, and features, and records which tests cover each one and which steps do the covering. mabl builds and maintains the graph for your application.

With a knowledge graph, TIA can produce higher confidence results:

Without a graph, the analysis still returns the related tests it finds by searching, but without that ranking.

Deciding which tests to run

The analysis returns candidates for execution. Before running anything, TIA sorts each test into one of three groups:

Group Which tests What TIA does
Running now Tests that only read data, or clean up after themselves Runs one first as a canary to confirm the target, then the rest.
Needs your approval Tests that write shared data, whose cleanup TIA can’t verify, or need a billable feature enabled to run locally Asks you before running them.
Not running Tests that are disabled, unreliable, or outside the scope you set Skips them and says why.

What the analysis can’t tell you

When you read a report generated by TIA, bear in mind the following:

Learn more