Skip to content

Commit afbdf3d

Browse files
committed
- pass on failed and passed count
1 parent 4744223 commit afbdf3d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

dist/index.js

Lines changed: 2 additions & 3 deletions
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/main.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,13 @@ export async function run(): Promise<void> {
109109
testResults.push(testResult)
110110
} else {
111111
for (const actualTestResult of testResult.testResults) {
112-
const failedCount = actualTestResult.annotations.filter(a => a.annotation_level === 'failure').length
113112
testResults.push({
114113
checkName: `${testResult.checkName} | ${actualTestResult.name}`,
115114
summary: testResult.summary,
116115
totalCount: actualTestResult.totalCount,
117116
skipped: actualTestResult.skippedCount,
118-
failed: failedCount,
119-
passed: actualTestResult.totalCount - failedCount - actualTestResult.skippedCount,
117+
failed: actualTestResult.failedCount,
118+
passed: actualTestResult.passedCount,
120119
retried: actualTestResult.retriedCount,
121120
foundFiles: 1,
122121
globalAnnotations: actualTestResult.annotations,

0 commit comments

Comments
 (0)