Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicmh committed Apr 11, 2024
1 parent 5ba2c43 commit da1dafa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/parsers/dart-json/dart-json-parser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import {ParseOptions, TestParser} from '../../test-parser'
import * as core from '@actions/core'

import { ParseOptions, TestParser } from '../../test-parser'

import {getBasePath, normalizeFilePath} from '../../utils/path-utils'

Expand Down Expand Up @@ -143,6 +145,7 @@ export class DartJsonParser implements TestParser {

return groups.map(group => {
group.tests.sort((a, b) => (a.testStart.test.line ?? 0) - (b.testStart.test.line ?? 0))
core.info('group.tests: ' + group.tests)
const tests = group.tests
.filter(tc => !tc.testDone!!.hidden)
.map(tc => {
Expand All @@ -153,6 +156,7 @@ export class DartJsonParser implements TestParser {
: tc.testStart.test.name.trim()
return new TestCaseResult(testName, tc.result, tc.time, error)
})
core.info('tests: ' + tests)
return new TestGroupResult(group.group.name, tests)
})
}
Expand Down
2 changes: 2 additions & 0 deletions src/report/get-report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ function getSuitesReport(tr: TestRunResult, runIndex: number, options: ReportOpt
sections.push(`## ${icon}\xa0${nameLink}`)

const time = formatTime(tr.time)

core.info('tr.tests: ' + tr.tests)
const headingLine2 =
tr.tests > 0
? `**${tr.tests}** tests were completed in **${time}** with **${tr.passed}** passed, **${tr.failed}** failed and **${tr.skipped}** skipped.`
Expand Down

0 comments on commit da1dafa

Please sign in to comment.