# Test impact analysis for regression selection

> Trace a code change to the customer behaviours it can affect. Select regression checks and compare them with a full run to find gaps in coverage.

Source: https://cueapril.com/guides/test-impact-analysis
Updated: 2026-12-01
Index: https://cueapril.com/llms.txt

## Which tests should we rerun when a shared component changes?

Start with the behaviour a change can affect, then follow dependencies into the checks that would notice a regression. Keep a full reference run so a fast selection policy can be challenged.

A shared currency formatter changes.

## Work through the decision

Its unit tests cover display precision. The invoice PDF and the account export consume the same formatter through different paths. Only running tests in the edited folder misses both consumers.

Steps and evidence for the reviewer

| Step | Evidence to keep |
| --- | --- |
| Map callers | Include exports and background consumers as well as imports. |
| Select checks | Choose a decimal-boundary test, a PDF assertion and an export fixture. |
| Verify recall | Run a broader suite on the same revision and investigate any omitted failure. |

## What changes the decision

Treat changed lines as a starting point. If the dependency map is stale or the change alters shared state, expand the selection before accepting the faster result.

## Primary documentation

- [Microsoft guide to test impact analysis](https://learn.microsoft.com/en-us/azure/devops/pipelines/test/test-impact-analysis?view=azure-devops)
- [Risk-based testing and release exceptions](/guides/risk-based-testing)

By Cue April. Updated 2026-12-01.

## Related

- [Testing guides](https://cueapril.com/guides): Learn how to select regression checks, verify generated tests and read failure evidence. Use examples that connect a code change to user behaviour.
- [Developer quickstart](https://cueapril.com/guides/agentic-testing-quickstart): Connect Claude Code or Codex to Cue April, check your project is ready and test an approved GitHub pull request. Match the findings to the exact commit.
- [Risk-based testing](https://cueapril.com/guides/risk-based-testing): Build a risk-based test strategy with an impact and likelihood matrix. Use three worked examples to choose checks and document a release exception.
