Impact

Impact reads the commits of a date window from your repositories and matches every changed file and line against what each test executed recently. You get the list of tests the change touches, the changed files no test reached, and a risk score per file from the code map. Open it before a release or a review, when you want to know which tests a set of commits puts at risk and where nothing would notice a break.

Where to find it

Sidebar, group Analyse, Impact (route /impact).

What it shows

Change sources

Every repository of the workspace, one row each: a checkbox, the name, the provider (or "local folder"), the URL or path, and a status pill. The pill says "connected" or "working copy" when the repository can be read, or why it cannot:

  • "No path on this server yet" for a local repository without a path.
  • "Needs a remote URL and a token" or "Needs a token — connect its host under Source control" for a GitHub, GitLab, Azure DevOps or Bitbucket repository that is not ready.
  • "Reading commits from <provider> is not supported" for any other provider.

Unreadable repositories are greyed out and cannot be ticked. If the workspace has no repositories, the panel points you to Source control on Integrations.

Below the list there is a field for a working copy path on the CoverOps server, with a Save button and a note ("local working copy" or "no local path"). The field is hidden when the installation does not allow server paths; the panel then tells you to connect repositories through their host instead.

Change window

Changes since (defaults to today), Until (optional) and the Analyze changes button. The button stays disabled until at least one source can be read.

Sources that could not be read

Shown only after an analysis in which a source failed. Each failed source is listed with its error, so a partial answer is never presented as the whole change.

Git changes

Titled "Git changes · N commits · M files". N is every commit the window returned, newest first, across all selected sources. M is the number of changed files that could be mapped to a coverage path (see How it works); files that cannot appear in coverage are not counted here.

Each commit row shows a checkbox, the short sha, the subject, the repository, author, date and the number of files the commit touched. A pill on the right says how many tests have executed what this commit changed (at most 12 are counted per commit), or "no case covers it".

Under the commits:

  • Change risk: the overall score (0–100) with its level, how many files were scored and how many are "not on the map". how it is scored expands the formula. When there is no usable code map, a single line says why and links to the Code graph.
  • Depends on the change, barely or never covered: up to 6 files that depend on the changed code and are below 30% covered or never measured, each with its coverage and the changed files it is reached through.
  • The changed-file table: Changed file (with up to three of its most connected symbols), Lines (changed lines), and, when risk is available, Covered (line coverage of the file in the latest run that measured it), Depends on it (files that depend on it within two hops) and Risk (score and level, or "not on the map"). The table is sorted by risk, highest first.

Run plan

Titled "Run plan · N impacted test executions (M unique)". N counts tests by suite and name; M counts distinct test names, so N is larger when two suites have a test of the same name.

Each test row shows its name and "X files · Y changed lines hit". Expanding it shows the suite, when the test was last seen, and per file either "N changed lines executed" or "file-level match" (the test ran the file but none of its changed lines). Tests are ordered by changed lines hit, then by number of files.

When you hover a commit, or click it to pin it, a panel at the top of the run plan shows that commit alone: the tests that executed what it changed, strongest evidence first, as "N lines in common" or "N files in common". If none did, it says the change is one nothing covers. Back to the whole plan unpins it.

If no test touches the changed files, the plan says nothing in the last 30 days of test-impact data touches them.

How it works

  • Reading the commits. CoverOps reads the window from every selected source and merges the commits into one timeline. A working copy is read with git log on the server; connected repositories are read through the provider's API, at most 100 commits per repository per window. Line numbers are the new-side lines of each diff hunk (added or modified lines). Deleted files are left out. Azure DevOps lists a commit's files without a patch, so its commits carry no line numbers and match at file level only.
  • Mapping to coverage paths. Agents report files relative to their own root (below the Java source root, the Python working directory, the Go module and so on). Each changed repository path is matched to the paths your agents reported in the project's last 30 runs, by whole path segments from the end; the longest match wins. When two reported paths match equally well, the file gets no coverage path rather than a guess. When none matches, a built-in rule is used: the part after src/main/java/, src/main/kotlin/ or src/, or the path as-is for .ts, .js, .mjs and .cjs files. Anything else has no coverage path and is left out of the changed-file list.
  • Matching tests. For every changed file, CoverOps reads the per-test line coverage recorded in the last 30 days (newest first, at most 20,000 rows). For each test and file the most recent record counts. A test is in the plan when it executed at least one line of a changed file; the number of changed lines it executed ranks it.
  • Per-commit answers use the same records, matched against each commit's own changes.
  • Change risk needs a ready code map. Each changed file found on the map is scored 0–100: 45% how little of it the latest run covered (an unmeasured file counts as 70% uncovered), 25% how many files depend on it within two hops (10 or more counts in full), 15% how often its symbols are referenced from other files (20 or more counts in full), and 15% how much the window changed it (half from changed lines, 200 or more in full; half from commits, 5 or more in full). The overall score is 60% of the worst file plus 40% of the mean. Levels: high from 70, medium from 40, low below.

What you can do

  • Choose sources. Untick a repository to leave its commits out; at least one must stay ticked. The choice is saved for the project at once. Ticking every readable repository is stored as "all", so a repository connected later is included automatically.
  • Set a working copy path and Save it. The path must be an absolute path to a git checkout that the installation allows; it is stored as git's top-level directory.
  • Pick the window and press Analyze changes.
  • Narrow to some commits. Untick commits to recompute the plan from the remaining ones; at least one must stay ticked. The commit list itself stays complete.
  • Read one commit by hovering it, or click it to pin it.
  • Expand a test to see its files and line overlap.
  • how it is scored shows the risk formula.

Saving sources or the path needs write access to the project; viewers can still analyse.

Limits and good to know

  • The test data is only the last 30 days. A test that has not run in that time is not in the plan, however relevant.
  • Each connected repository contributes at most 100 commits per analysis. Use a narrower window for busy repositories.
  • Azure DevOps commits match at file level only, so their line counts and line overlaps are 0.
  • Narrowing to commits sends whichever list is shorter, the ticked commits or the unticked ones, by sha. Each list may hold up to 1,000 commits, so a narrowing is refused only when both the ticked and the unticked commits number more than 1,000.
  • The dates are whole days. A working copy is read in the server's time zone, connected repositories in UTC.
  • Files the risk score cannot place (configuration, documentation, generated code) are counted as "not on the map" and not scored.