Skip to content

Commit 166500a

Browse files
Merge pull request #83 from ctrf-io/fix/fail-rate-skipped
fix: exclude skipped,pending and other from fail rate calc #82
2 parents 1169d57 + cb21dee commit 166500a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ctrf/metrics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export function processTestMetrics(test: CtrfTest): TestMetrics {
152152
passedCount: isPassed ? 1 : 0,
153153
failedCount: isPassed ? test.retries || 0 : attempts,
154154
finalResults: 1,
155-
finalFailures: isPassed ? 0 : 1
155+
finalFailures: test.status === 'failed' ? 1 : 0
156156
}
157157
}
158158

0 commit comments

Comments
 (0)