Set thresholds and check a coverage report against them. Per-file checking finds what a global gate hides: new code with no tests at all.
Waiting for a coverage report
Set the thresholds above, then paste an LCOV or Istanbul report.
A global threshold is satisfied by one large well-covered file carrying several untested ones: the total rises, the gate passes, and the newest code has no tests. Checking every file separately is what catches that.
Paste a report to check it against the thresholds above.
A threshold is a floor, not a target. Raising one until it passes is the same as deleting it, and a metric this report does not carry is reported as unmeasurable rather than as a breach — failing a build over a number that does not exist is how gates get removed.
Coverage Threshold Checker runs entirely on your device — your coverage report is parsed in your browser and never uploaded.
You’re on the Free plan. Compare plans
A global coverage threshold is satisfied by one large well-covered file carrying several untested ones. The total rises, the gate passes, and the newest code — which is the code most likely to be wrong — has no tests at all. Checking every file separately is what catches that, which is why the per-file view here lists the files rather than only counting them.
The margin is reported in percentage points against each threshold, so you can see whether a metric is one point short or twenty. That difference decides whether the answer is one more test or a week of work.
A threshold set on a metric the report does not carry has nothing to check. Statements against an LCOV file is the common case, since LCOV has no statement records. That is reported as unmeasurable rather than as a breach, because failing a build over a number that does not exist is how gates come to be deleted.
Because a global threshold can be met while the code you just wrote has no tests. One large well-covered file raises the total enough to carry several untested ones, the gate passes, and nothing reports the gap. Per-file checking is the only version of this that catches new untested code.
Because the report does not carry that metric. Setting a statement threshold against an LCOV file is the usual cause — LCOV has no statement records at all. It is reported as a gap in information rather than as a breach, since failing a build over a number that does not exist teaches people to remove the check.
There is no universal answer, and anyone offering one is guessing about your codebase. The defaults here are a conventional starting point. What matters more than the number is that it does not fall over time, which is what the comparison tool is for.
No — it is the same as deleting the check. A threshold is a floor, and a floor that moves down whenever it is reached is not a floor. If the number genuinely cannot be met, that is worth recording as a decision rather than quietly adjusting.
No. The report is read and checked in your browser.
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