diff --git a/scripts/aggregate_evals.js b/scripts/aggregate_evals.js index d14596d487..6f5e440bd2 100644 --- a/scripts/aggregate_evals.js +++ b/scripts/aggregate_evals.js @@ -68,12 +68,14 @@ function getStats(reports) { if (!testStats[name]) { testStats[name] = { passed: 0, failed: 0, total: 0 }; } - testStats[name].total++; if (assertion.status === 'passed') { testStats[name].passed++; - } else { + testStats[name].total++; + } else if (assertion.status === 'failed') { testStats[name].failed++; + testStats[name].total++; } + // Ignore skipped/pending tests } } } catch (error) {