Skip to content

Commit

Permalink
chore(update): Kaleidos reporter has been updated
Browse files Browse the repository at this point in the history
  • Loading branch information
chalapkoStanislav committed Oct 22, 2024
1 parent b9efb56 commit 4104100
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions helpers/saveTestResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;


Expand Down

0 comments on commit 4104100

Please sign in to comment.