@@ -888,14 +888,15 @@ def _run_ungrouped_tests(
888888 collection : str ,
889889 job : str ,
890890 job_definition : DefaultMunch ,
891- ) -> tuple [int , int , int , int ]:
891+ ) -> tuple [int , int , int , int , int ]:
892892 """Runs the tests for a specific Job definition returning the number
893893 of tests passed, skipped (due to run-level), ignored and failed.
894894 """
895895 assert job_definition
896896 assert isinstance (job_definition , DefaultMunch )
897897
898898 # The test status, assume success
899+ tests_found : int = 0
899900 tests_passed : int = 0
900901 tests_skipped : int = 0
901902 tests_ignored : int = 0
@@ -929,6 +930,7 @@ def _run_ungrouped_tests(
929930 compose .delete ()
930931
931932 # Count?
933+ tests_found += 1
932934 if test_result == TestResult .PASSED :
933935 print ("- SUCCESS" )
934936 tests_passed += 1
@@ -939,7 +941,7 @@ def _run_ungrouped_tests(
939941 if test_result == TestResult .FAILED and args .exit_on_failure :
940942 break
941943
942- return tests_passed , tests_skipped , tests_ignored , tests_failed
944+ return tests_found , tests_passed , tests_skipped , tests_ignored , tests_failed
943945
944946
945947def _run_grouped_tests (
@@ -1420,6 +1422,7 @@ def main() -> int:
14201422 # These will be handled sepratately.
14211423 if job_definition .jobs [job_name ].tests :
14221424 (
1425+ num_found ,
14231426 num_passed ,
14241427 num_skipped ,
14251428 num_ignored ,
@@ -1431,6 +1434,7 @@ def main() -> int:
14311434 job_name ,
14321435 job_definition .jobs [job_name ],
14331436 )
1437+ total_found_count += num_found
14341438 total_passed_count += num_passed
14351439 total_skipped_count += num_skipped
14361440 total_ignore_count += num_ignored
0 commit comments