Run detail
The run detail page shows one run in full: its merged coverage from every agent, the coverage of each application, the source of each file line by line, the tests that ran and what each of them reached, the live trace feed while the run is collecting, and why failed tests failed. Open it from any run key in CoverOps, or from a test runner's report link.
Where to find it
Click a run key on Coverage monitoring, Overview or Reports. Coverage monitoring at the top of the page takes you back to the list, and the sidebar keeps Coverage monitoring highlighted. Every member of the project can open a run. Finishing a run and changing the counted-code rules need write access (Member or Administrator).
Two link forms open this page directly:
/runs/by-key/<run key>: what a test runner builds, because it knows the run key and not the run's id. If the run belongs to another project you can open, CoverOps switches to that project first. If none of your projects has the run, you see "Run not found".?test=<suite>::<name>opens that test's detail popup on arrival;?env=<environment>opens the run filtered to that environment.
What it shows
Run header
The status, the run key and, while the run is running, Finish run. Below: repository, branch, the first 10 characters of the commit, and the start time (only the parts that exist).
A run the server closed because nothing reported into it for the idle limit (6 hours by default; see Concepts) says so under the header: "Closed after 6 h without data", with the time its last data arrived, which is also where its duration ends.
Fed by appears when the run mixes kinds of test results, or has passive visits: it counts automated tests, issue-key cases (tests filed under a suite named like an issue key, ABC-123), manual sessions and ambient visits. Ambient visits carry no verdict: their green means "recorded", not "verified".
Code changed while the window was open
If a new build was deployed while the run was open, a notice gives the time. For the files the new build rebuilt, coverage recorded before that moment was dropped rather than added to the new lines, so those files are measured from the build now running. Everything else keeps its history. Start a fresh window if you need one build's number end to end.
Live trace feed
While the run is running, call steps stream in as agents report them. One entry is one request hop (a step), labelled with the service and its method count, showing up to three of its methods (Class.method(), up to six line numbers, duration) and "… +N methods" for the rest. Until the first step arrives, the panel lists what has to be true for steps to appear: the agent runs with COVERAGEOPS_TRACE=true, the process was restarted after that, and an inbound HTTP request reaches the service (timers and queue jobs are not traced). A status line shows the run's status and passed, failed and skipped counts as they change, and the count of tests with no result when there are any. The badge shows connecting, live, paused, closed or error.
Pause live feed stops this browser reading the stream; the run keeps collecting. Resume reconnects and catches up on what was reported in the meantime. When the run has finished, the panel says nothing is streaming.
Counted code
Which lines count towards the figures. With no rules, "Every reported line counts". Otherwise it shows the number of rules and path patterns and how many lines in how many files are out of this run's count. Choose what counts opens the rules:
- Exception handling: catch and finally bodies, Python
except, Go'sif err != nil. - Accessors & data classes: one-line getters and setters, C# auto-properties, generated equals/hashCode/toString.
- Generated code:
@Generated,[GeneratedCode],<auto-generated>, "Code generated by … DO NOT EDIT", Lombok. - Logging statements: lines whose only job is to log.
- Ignore comments:
coverlens:ignore,istanbul ignore,# pragma: no cover,LCOV_EXCL_LINE,[ExcludeFromCodeCoverage]. - Paths to skip whole: one pattern per line (for example
**/generated/**,*.pb.go), saved with Save paths.
Headline numbers
Four figures: Lines, Branches, Functions (covered as a percentage) and Test (the run's total test count). A figure with nothing behind it shows as empty rather than 0% or 100%.
- With no application selected, the percentages are the file-level merge of every application's report, after the counted-code rules.
- With an application selected, they are that application's own report, the same figures as its card. Test stays the whole run's count and says "across the whole run".
Coverage per application
One card per service (agent, shard name and environment). A card shows:
- the shard name and the agent's name;
- the environment, when the run has more than one;
- N pods when the service reported from more than one replica (hover for their names);
- live and a green mark when the service sent a trace frame in the last 10 seconds;
- the agent build version, or pre-versioning for agents too old to report one;
- the agent's language and any labels it sent (
key=value); - line coverage with covered/total lines, branch and function percentages, or "No report yet."
When the run has more than one environment, an Environment row lets you pick All or one environment.
Click a card to filter the page to that application; click it again to clear.
Files
A tree of the files in the run with their coverage. With an application selected, only the files its reports include are listed, and a chip with its name (and ✕) clears the filter.
Source view
The selected file (the first one by default), line by line, fetched at the run's commit. Each line shows its hit count (3x) and a background:
- covered: ran at least once and, if it branches, every branch was taken;
- uncovered: instrumented but never executed (0x);
- partial branch: ran, but only some of its branches were taken;
- other window: zero in this run but the line ran in another run. Hover the "—" to see how often and in which run; click it for what ran it before.
Buttons on a line:
- N tests touch this: the tests in this run that executed the line.
- what would cover this (on uncovered lines, on hover): opens the file's source popup with the nearest scenario that has reached this file and a suggestion for what to add.
When no source is available for the file, only the line numbers the agent reported are shown, with a note on how to get source in: a current agent that can read the file sends it within a flush or two; otherwise connect the repository read-only under Integrations or upload source at build time. A service started with source upload switched off never sends code.
Tests that touched this file
Each test that executed the selected file, with its status and how many of the file's lines it ran. If nothing in the run named a test, the panel explains that the coverage is real but cannot be traced to a case, and how attribution works (X-CoverageOps-Test header or ?covtest=). If other files have a mapping, it says this file was simply not reached by a named case.
Why it is red
Shown when the run has failed tests. It counts the failures per kind, groups failures that share one error ("Same failure, several tests", up to five groups) and lists each failed test with its kind and evidence. Each group says "N tests failed with the same error", whether it is new in this run or seen in N runs since a date (the project's last 30 days up to this run), the commit most of its tests name first when the diagnosis has one, and links to it on Failure groups. Two failures are one group when their failure signatures match: see that page for the rules. The kinds, in the order they are decided:
| Kind | Meaning |
|---|---|
| Quarantined | A known flake, already set aside; it does not decide the build. |
| Environment | Many tests failed with the same connection, timeout or start-up message. |
| Code change | A change since the test last passed reached lines it runs, or changed a file it runs. |
| Test changed | Its own test file changed since it last passed; the code it runs did not. |
| Flaky | Its history flips between pass and fail without the code changing. |
| Never passed | No green run on record to compare with. |
| Nothing it runs changed | It passed before and no change since reached the code it runs. |
| No comparison | The changes could not be read, or there is no footprint to compare with. |
For a code change, each suspect commit is shown with its short hash, subject, author, date and the changed lines the test runs. A dashed suspect changed a file the test runs but not a line it executed (often a constant the compiler folds in). If the commits cannot be read, the panel says so and points to Integrations → Source control.
Early flake detection
Shown when the run has tests that early flake detection repeated: how many new or changed tests were repeated, how many were flaky (passed and failed among their runs) and how many failed every time, with the tests and their repeated N× badge (flaky first). A flaky one counts on the Flaky tests page and for auto-quarantine like a pass on retry.
Tests in this run
Every test result, with its status (passive visits show recorded instead), suite and name, the test runner that reported it (playwright, pytest, junit…; none when only a service's agent reported the test), and duration. A test the runner retried in this run carries a badge: passed on retry N when it failed and then passed on its N-th retry (hover for how many attempts failed), or N attempts when it ran more than once without passing in between. The status is the last attempt's, so a pass on retry counts as passed here, in the gate and in test selection; the Flaky tests page counts it as flaky. A new or changed test that early flake detection ran several times carries repeated N×: P passed, F failed instead, and → flaky when its runs disagreed; the status is failed when any run failed. When more than one runner fed the run, Test runner buttons narrow the list to one of them. Click a test to open the test detail popup.
A test an agent reported with coverage only, and that no runner gave a verdict, shows a grey no result badge: its lines are known, whether it passed is not. It is neither a pass nor a failure. The verdict replaces it when it arrives; coverage that arrives after a verdict never changes the verdict. The Test card counts every test and notes "N without a result" when there are any.
Worth running here lists, below the tests, flows from earlier runs that executed lines this run has not reached: "+N lines" is what each would add if it ran again, with when and in which run it was last seen, and "has a session" when a ReplayOps session carried it. Click one for its details; running it again is the test runner's job.
Test detail popup
- The test's ReplayOps sessions, each as an Open in ReplayOps link.
- Why it failed, with its kind and evidence, when it failed.
- Flow: the request hops the test caused, in order, each with its service, duration and line count.
- Coverage: "N lines in M files", each file opening the source with the test's lines marked. If other tests ran at the same time against the same service, a note says these lines may include theirs; the flow is this test's alone.
A unit test has coverage here too when its runner records it in its own process (an in-process footprint: pytest, Jest, Vitest, Mocha, JUnit 5 and TestNG with the Java agent on the test JVM, NUnit/xUnit/MSTest with the .NET agent on the test host, go test with
coverageopstest). It holds the test's own lines, its per-test setup and teardown, and its class's one-time setup shared by every test of the class; such a test has no flow. When tests ran at the same time in one JVM or one Go test binary, the same note says the lines may include theirs. See In-process tests.
Line popups
- Tests that touched this line: each test with its status and line count; expand one for its steps as ReplayOps saw them (or "No browser steps" for an API-level test), its entry URL and the lines it executed, plus Open in ReplayOps → and details.
- What ran this line before (grey lines): the scenarios that reached the line in earlier runs, with the run and date. If none, it tells start-up code (runs once at boot, before any test is in scope) apart from traffic that ran with no test in scope.
Metadata-only projects
When the project's Source code storage is Metadata only, CoverOps keeps no code, so the source view numbers every line of the file from its outline, colours it by coverage and marks comment and blank lines, without the text. A strip above the code says so and offers Open local copy…: the file you choose is drawn in your browser and never uploaded; only per-line fingerprints are sent, and lines that differ from the measured version are underlined. If an owner allowed it, the file is instead read from the connected repository for that one view ("Read from the connected repository for this view — not stored"), with the same check.
How it works
- Merging. Each participant (one per agent, shard and replica) reports its own coverage. The run total merges them per file: line hits add up, and for branches the larger count is kept, so a branch is not counted twice. Replicas of one service are merged into one card the same way.
- Counted-code rules are set per project and apply to every run, and to the run figures on the list and the Overview. Line rules read each file's uploaded source, or, in a metadata-only project, the rule lines the CLI's outline carries (
coverageops outline); a file with neither is counted as the agent reported it, and Counted code says how many files that was ("Line rules could not reach N files"). Path patterns remove whole files. - Environment filter. With an environment chosen, only that environment's participants and the files their reports hold are used. Test and preprod pods in one window never mix.
- Second monitoring windows. A window that has no uploads of its own yet is computed from the trace frames that arrived inside it, against the line list of the active window. Branches read zero in that case. Its trace feed shows the project's frames that arrived between its start and its end (or now).
- Other window. For the open file, CoverOps looks at the same file in up to 12 other runs; a line at zero here with hits there is shown as other window.
- Diagnosis compares each failed test with its last green run in the 30 days before the run. If it never passed, commits from the 7 days before are read. Changes come from the connected repositories. A test counts as flaky when it is flaky on the Flaky tests page and its flakiness score is 30 or more, or it passed and failed on the same commit, or it passed on retry inside one run. Messages that look like an outage count as Environment when at least 3 tests share them, or at least half of the failures.
- Worth running here looks at test coverage from the last 30 days, outside this run, on the files this run left uncovered, and shows up to 12 tests ranked by lines gained.
- Refresh. While the run is running, the page reloads every 10 seconds. The live feed polls about every 1.2 seconds and reconnects with back-off (up to 30 seconds) when the connection drops. The server closes every stream after 10 minutes; while the run is running and the feed is not paused, the page reconnects without a warning and carries on from where it stopped. A service's live mark fades 10 seconds after its last frame.
What you can do
- Finish run: confirm with Finish run or cancel with Keep it running. The verdicts decide the outcome; a run with no verdicts closes as aborted, including one whose only tests have no result.
- Pause and resume the live feed.
- Choose counted-code rules and path patterns (applies to the whole project).
- Pick an environment, click an application card to filter, pick a file in the tree.
- Click line buttons, tests, suggestions and files to open the popups described above; follow Open in ReplayOps links to the recordings.
Limits and good to know
- The page loads at most 500 test results and 5,000 call frames for a run. The test popup asks for its own frames separately, so it is not limited by the 5,000.
- Diagnosis covers the first 200 failed tests; the panel says so when there are more.
- Rule-excluded lines lose their colour and hit count in the source view; path-excluded files disappear from the file list.