Skip to content

Commit

Permalink
Fix stats calculation to aggregate results across all test suites ins…
Browse files Browse the repository at this point in the history
…tead of only the first suite

Signed-off-by: jkchen1095 <[email protected]>
  • Loading branch information
jkchen1095 authored and acerv committed Sep 23, 2024
1 parent 6d419d4 commit b00f4a6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions libkirk/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ async def save_file(self, results: list, path: str) -> None:
data = {
"results": results_json,
"stats": {
"runtime": results[0].exec_time,
"passed": results[0].passed,
"failed": results[0].failed,
"broken": results[0].broken,
"skipped": results[0].skipped,
"warnings": results[0].warnings
"runtime": sum(result.exec_time for result in results),
"passed": sum(result.passed for result in results),
"failed": sum(result.failed for result in results),
"broken": sum(result.broken for result in results),
"skipped": sum(result.skipped for result in results),
"warnings": sum(result.warnings for result in results)
},
"environment": {
"distribution": results[0].distro,
Expand Down

0 comments on commit b00f4a6

Please sign in to comment.