From 41041002d13833290ca3103448bedff33c3e1167 Mon Sep 17 00:00:00 2001 From: chalapkoStanislav Date: Tue, 22 Oct 2024 18:34:43 +0300 Subject: [PATCH] chore(update): Kaleidos reporter has been updated --- helpers/saveTestResults.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/helpers/saveTestResults.js b/helpers/saveTestResults.js index 621e33c8..f89973f8 100644 --- a/helpers/saveTestResults.js +++ b/helpers/saveTestResults.js @@ -30,15 +30,19 @@ async function updateTestResults(result, retryCount) { return; } - if (result === 'passed') { + if (result === 'passed' && retryCount === 0) { testResults.Passed++; } else if (result === 'failed' && retryCount === 2) { testResults.Failed++; + } else if (result === 'timedOut' && retryCount === 2) { + testResults.Failed++; } else if (result === 'flaky') { testResults.Flaky++; + } else if (result === 'passed' && retryCount > 0 ) { + testResults.Flaky++; } - const totalTests = testResults.Passed + testResults.Failed + const totalTests = testResults.Passed + testResults.Failed + testResults.Flaky testResults.PercentPassed = (testResults.Passed / totalTests) * 100;