mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-12 15:10:59 -07:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user