Change impact analysis
A change came in. What did it touch, and which tests reached that code?
CoverOps reads the commits you choose and matches every changed line against what each test executed on its last run with an agent. The answer is evidence, not a guess from file names: a test is listed because it ran that code.
By the CoverOps team · Last updated
What you get for a change
- Affected code
- Every changed file and line in the window or commits you chose, from GitHub, GitLab, Bitbucket or Azure DevOps repositories (and local working copies on a self-hosted install).
- Tests that reached it
- The tests whose last recorded run executed at least one changed line, with the lines each one reached.
- Changed lines nothing reached
- Lines the change touched that no recorded test executed. These are the gaps to close before the change ships.
- A risk ranking
- Each changed file scored 0–100 from how little of it was covered, how much other code depends on it, how often it is referenced, and how much the window changed it. A ranking of where to look first, not a measurement.
Impact analysis is not test selection
Impact analysis answers
What did this change affect, and which existing tests exercised it? That is useful whether or not you ever shorten a test run: it tells a reviewer where the change was tested and where it was not.
Test selection decides
Which tests to run this time. CoverOps tells your CI which tests the change cannot reach, through the runner plugins, coverageops select or the API; everything else runs, including tests written since the last run. When the change touches code no agent measures, it says so and the whole suite runs. CoverOps does not schedule or start test runs.
Where the analysis is blind
- Tests that never ran with an agent have no record, so they never appear in the list. New tests must run regardless.
- Changes outside measured code: configuration, database migrations, feature flags, infrastructure and services without an agent are invisible to line matching.
- Records age. A test's footprint is from its last recorded run; if the code paths changed since, re-run the full suite periodically to refresh it.
- Non-deterministic paths (timing, data, caches) may run code in one run and not the next, so a single recorded run can under-report what a test reaches.
Where it plugs in
# in a pull request pipeline coverageops select --base origin/main --format skip # tests this branch's changes cannot reach coverageops gate --base origin/main --min-changed 80 # 0 pass · 1 fail · 2 misconfigured
The gate posts its verdict as a commit status on GitHub, GitLab, Azure DevOps or Bitbucket. The CLI reads the CI run id from GitHub Actions, Jenkins and GitLab CI on its own; any other CI passes it as a flag.
Try impact analysis on one of your repositories
In a demo we connect a repository, pick a recent change and show which tests reached it, using the agents' record.