We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0e8917 + 44679ec commit d46527fCopy full SHA for d46527f
elementary/monitor/api/tests/tests.py
@@ -293,7 +293,9 @@ def get_invocations(
293
for sub_test_unique_id, sub_test_invocations in grouped_invocations.items():
294
totals = self._get_test_invocations_totals(sub_test_invocations)
295
test_invocations[sub_test_unique_id] = InvocationsSchema(
296
- fail_rate=round(totals.errors / len(sub_test_invocations), 2)
+ fail_rate=round(
297
+ (totals.errors + totals.failures) / len(sub_test_invocations), 2
298
+ )
299
if sub_test_invocations
300
else 0,
301
totals=totals,
0 commit comments