fix(scripts): exclude skipped tests from pass rate calculation

Ensures that models skipping irrelevant tests (like workflow evals) don't suffer a drop in reported pass rate.
This commit is contained in:
cocosheng-g
2026-02-03 21:56:37 -05:00
parent 8c82777ea0
commit d23499db90
+4 -2
View File
@@ -68,12 +68,14 @@ function getStats(reports) {
if (!testStats[name]) { if (!testStats[name]) {
testStats[name] = { passed: 0, failed: 0, total: 0 }; testStats[name] = { passed: 0, failed: 0, total: 0 };
} }
testStats[name].total++;
if (assertion.status === 'passed') { if (assertion.status === 'passed') {
testStats[name].passed++; testStats[name].passed++;
} else { testStats[name].total++;
} else if (assertion.status === 'failed') {
testStats[name].failed++; testStats[name].failed++;
testStats[name].total++;
} }
// Ignore skipped/pending tests
} }
} }
} catch (error) { } catch (error) {