Story coverage
Story coverage answers a question a coverage average cannot: we closed this issue, is the code it changed actually tested? Commits are grouped by the issue keys in their messages and each issue is scored on the coverage of the lines its commits changed. Open it before a release review, or to find issues that shipped code no test ran.
Where to find it
Sidebar, group Analyse → Story coverage.
What it shows
Controls
- Commits since: the start of the window commits are read from (30 days back by default).
- Measured against: the run the stories are scored on. Latest finished run is the default; the list also offers the project's recent runs, each marked when it is a monitoring window (open or closed) or still running.
Under the controls a line says which run was used and why: the latest finished run, the run you picked, or — when nothing has finished yet — an open run whose numbers can still change. It also says how that build is dated: by the commit the run names, when that commit is in the window, otherwise by when the run started.
The story list
Worst-covered first. Each row shows:
- Issue key: a link to the issue in Jira when Jira is connected, otherwise plain text.
- Title: the Jira summary, or the first commit subject when there is no Jira data.
- Status: the Jira status, highlighted when Jira counts it as done.
- shipped untested: a red badge on an issue Jira counts as done whose changed lines are not all covered.
- build older than story: the measured build is older than the story's last commit, so part of the change cannot be in it.
N commits · N files · N lines: commits referencing the key, files they changed, and changed lines.- Coverage: the percentage, or no code when the story changed nothing measurable.
- N lines never ran: changed lines in code files no test loaded at all; they count as uncovered. The files are listed under the row (Never loaded by a test:).
- A bar and
covered/coverable covered, and up to two more commit subjects so the issue is recognisable without opening Jira.
Below the list, keys that were left out are named: Left out — not issues in Jira (Jira does not know them) and Left out — standards, not issues (such as UTF-8 or SHA-256).
How it works
- Commits are read from the project's change sources, the same ones Impact uses: repositories connected under Source control on Integrations, or working copies on the server.
- Issue keys are found anywhere in each commit's full message: an uppercase prefix, a dash and a number (for example
PROJ-45). A commit that names several keys counts toward each of them. Key-shaped standards (UTF-8,SHA-256,ISO-8601,RFC-…,CVE-…and similar) are never stories. - Jira: when the Jira / Xray integration is connected, Jira decides which keys are issues, and gives each its title, status and link. An issue is done when its Jira status category is done. One unknown key no longer spoils the lookup: CoverOps asks Jira to ignore keys it does not know and, if Jira still refuses a batch, splits it until the stray key is isolated. If Jira does not answer at all, keys are shown without titles and nothing is left out on Jira's account.
- The measured run: by default the latest finished run — open monitoring windows and runs still uploading are skipped, because their numbers are still moving. You can pick any recent run instead.
- Scoring: for each issue, the lines changed by all of its commits are combined.
- A changed line in a file the run measured counts as coverable when the run has an entry for it, and as covered when its hit count is above zero.
- A changed line in a code file the run never loaded counts as coverable and uncovered — a class no test touched is untested code, not "no code". A file counts as code when it is not documentation, configuration, a picture or a test, not generated or vendored, not excluded by the project's counting rules, and in a language the project measures (one its agents have reported, or whose source or source outline was uploaded).
- A story with nothing coverable — documentation or configuration only — reads no code, not as a failure.
- Older builds: a story is flagged when its newest commit is later than the measured build.
- Sorting: lowest coverage first, then more changed lines first. no code stories sink to the bottom.
What you can do
- Change Commits since to widen or narrow the window.
- Pick the run to measure against in Measured against.
- Click an issue key to open the issue in Jira (when Jira is connected).
- Read the shipped untested and N lines never ran markers as the list of issues to follow up.
Limits and good to know
- Without a connected repository the page cannot read commits; it says Connect a repository first and links to where that is done.
- For a file no test loaded, every changed line counts, including blank lines and comments, because there is no coverage to say which lines are executable.
- Without Jira, key-shaped strings are filtered by a fixed list of standards; a short project prefix that looks like one is kept.
- Azure DevOps may shorten long commit messages, so a key far down a long message can be missed there.
- A commit whose host lists changed files without line-level changes adds files but no measurable lines.
- Languages the project does not measure read no code.
Metadata-only projects
Story coverage reads git changes and coverage, not stored source, so it works the same when a project keeps metadata only; the languages a project measures also come from source outlines.