Paste LCOV or Istanbul coverage JSON for per-file lines, branches and functions, plus the exact lines that never ran. No statement figure is invented.
Waiting for a coverage report
An LCOV file, or an Istanbul coverage-final.json or coverage-summary.json.
An LCOV file records lines, functions and branches — it has no statement coverage at all. A statement is not a line: if (a) return b; is one line and two statements, so copying the line figure into the statement column produces a number that looks measured and is not. It is shown as not reported instead.
Paste a report to see per-file coverage and the lines that never ran.
Coverage says which lines ran, not whether anything was asserted about them. A file at 100% can have no assertions in it at all. Treat a low number as a question worth asking and a high number as no answer on its own.
Coverage Report Viewer runs entirely on your device — your coverage report is parsed in your browser and never uploaded.
You’re on the Free plan. Compare plans
Coverage tooling produces an HTML report you have to serve, or a text summary that rounds everything. The underlying file — an LCOV trace or an Istanbul coverage-final.json — contains far more: which exact lines never executed, which branches were taken only one way, which functions were never called. This reads all three supported shapes and shows that detail.
LCOV has no statement coverage, and this is the one fact most viewers get wrong. Its DA records are line hits; statements are not lines. The expression if (a) return b; is one line and two statements, so copying the line figure into the statement column produces a number that looks measured and is not. Here it is reported as not available.
Zero of zero is not zero per cent either. A file with no branches has no branch coverage to report, and shown as 0% it looks like a gap worth fixing. Every metric distinguishes a genuine zero from an absent one, because the two lead to completely different actions.
Because LCOV does not contain it. Its DA records are line hits, and a statement is not a line — if (a) return b; is one line and two statements. Several viewers copy the line figure into the statement column, which produces a number that looks measured and is not. Istanbul reports statements separately, so an Istanbul file shows all four metrics.
Because the file has no branches. There is nothing of that kind to cover, which is different from having branches and covering none of them. Shown as 0% it reads as a gap worth fixing, and people act on it.
No. It is parsed in your browser and never leaves your device. A coverage report contains every file path in your project, which is often more than you want to paste into a web service.
No. Coverage says which lines ran, not whether anything was asserted about them — a file at 100% can contain no assertions at all. Treat a low number as a question worth asking and a high number as no answer on its own.
LCOV (lcov.info and anything in the same tracefile format), Istanbul's coverage-final.json, and Istanbul's coverage-summary.json. The summary format carries totals only, which the tool says explicitly rather than showing empty per-line detail.
Up to 12 MB and 20,000 files. Istanbul's coverage-final.json gets large quickly on a big project; if yours is over the limit, coverage-summary.json contains the per-file totals in a fraction of the size.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab