Skip to content

Commit

Permalink
fix: total 'Suites failed' metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Oct 21, 2024
1 parent a43a65d commit bc232ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/options/default/testRun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ export const testRun: TestCaseCustomizer<TestRunExtractorContext> = {
parameters: compose2(
custom.parameters<TestRunExtractorContext>({
'a) Suites passed': ({ aggregatedResult }) => aggregatedResult.numPassedTestSuites,
'b) Suites failed': ({ aggregatedResult }) => aggregatedResult.numFailedTestSuites,
'b) Suites failed': ({ aggregatedResult }) =>
aggregatedResult.numFailedTestSuites - aggregatedResult.numRuntimeErrorTestSuites,
'c) Suites broken': ({ aggregatedResult }) => aggregatedResult.numRuntimeErrorTestSuites,
'd) Suites pending': ({ aggregatedResult }) => aggregatedResult.numPendingTestSuites,
}),
Expand Down

0 comments on commit bc232ac

Please sign in to comment.