Skip to content

Commit

Permalink
Count failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pbchekin committed May 8, 2024
1 parent 3d27311 commit d6d95da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/pass_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ def parse_report(report_path: pathlib.Path) -> ReportStats:
stats.skipped += 1
elif skipped.get('type') == 'pytest.xfail':
stats.xfailed += 1
for _ in testsuite.iter('failure'):
stats.failed += 1
for _ in testsuite.iter('error'):
stats.failed += 1
deselected = get_deselected(report_path)
stats.skipped += deselected
stats.total += deselected
Expand Down

0 comments on commit d6d95da

Please sign in to comment.