Skip to content

Commit c6d73b9

Browse files
MDA2AVclaude
andcommitted
Count scored errors as fails so all numbers add up to total
Scored tests with Error verdict (timeouts, connection failures) were not counted in pass, warn, or fail — now counted as fail since the server didn't give the correct response. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a9ba2eb commit c6d73b9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docs/static/probe/render.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ window.ProbeRender = (function () {
251251
if (r.scored === false) { unscored++; return; }
252252
if (r.verdict === 'Pass') scoredPass++;
253253
else if (r.verdict === 'Warn') scoredWarn++;
254-
else if (r.verdict === 'Fail') scoredFail++;
254+
else scoredFail++;
255255
});
256256
} else {
257257
scoredPass = s.passed || 0;
@@ -525,9 +525,8 @@ window.ProbeRender = (function () {
525525
total: filtered.length,
526526
scored: scored.length,
527527
passed: scored.filter(function (r) { return r.verdict === 'Pass'; }).length,
528-
failed: scored.filter(function (r) { return r.verdict === 'Fail'; }).length,
528+
failed: scored.filter(function (r) { return r.verdict !== 'Pass' && r.verdict !== 'Warn'; }).length,
529529
warnings: scored.filter(function (r) { return r.verdict === 'Warn'; }).length,
530-
errors: scored.filter(function (r) { return r.verdict === 'Error'; }).length,
531530
unscored: filtered.filter(function (r) { return r.scored === false; }).length
532531
}
533532
};

0 commit comments

Comments
 (0)