Skip to content

test_runner: print failed coverage reports with dot runner #81406

test_runner: print failed coverage reports with dot runner

test_runner: print failed coverage reports with dot runner #81406

Status Failure
Total duration 43m 54s
Artifacts

test-macos.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 notice
test-macOS
Process completed with exit code 2.
test-macOS: test/test-runner/test-output-dot-reporter-coverage-threshold.mjs#L0
--- stderr --- node:internal/modules/run_main:107 triggerUncaughtException( ^ AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: + actual - expected ... Skipped lines 'invalid tap output\n' + + '.X\n' + - '.\n' + 'ℹ Error: 78.35% line coverage does not meet threshold of 99%.\n' + 'ℹ start of coverage report\n' + 'ℹ --------------------------------------------------------------------------------------------\n' + 'ℹ file | line % | branch % | funcs % | uncovered lines\n' + 'ℹ --------------------------------------------------------------------------------------------\n' + ... 'ℹ --------------------------------------------------------------------------------------------\n' + + 'ℹ end of coverage report\n' + + '\n' + + 'Failed tests:\n' + + '\n' + + '✖ Error: 78.35% line coverage does not meet threshold of 99%.' - 'ℹ end of coverage report\n' at assertSnapshot (/Users/runner/work/node/node/node/test/common/assertSnapshot.js:173:12) at async spawnAndAssert (/Users/runner/work/node/node/node/test/common/assertSnapshot.js:208:3) at async file:///Users/runner/work/node/node/node/test/test-runner/test-output-dot-reporter-coverage-threshold.mjs:12:1 { generatedMessage: true, code: 'ERR_ASSERTION', actual: 'invalid tap output\n' + '.X\n' + 'ℹ Error: 78.35% line coverage does not meet threshold of 99%.\n' + 'ℹ start of coverage report\n' + 'ℹ --------------------------------------------------------------------------------------------\n' + 'ℹ file | line % | branch % | funcs % | uncovered lines\n' + 'ℹ --------------------------------------------------------------------------------------------\n' + 'ℹ test | | | |\n' + 'ℹ fixtures | | | |\n' + 'ℹ test-runner | | | |\n' + 'ℹ coverage.js | 78.65 | 38.46 | 60.00 | 12-13 16-22 27 39 43-44 61-62 66-67 71-72\n' + 'ℹ invalid-tap.js | 100.00 | 100.00 | 100.00 |\n' + 'ℹ v8-coverage | | | |\n' + 'ℹ throw.js | 71.43 | 50.00 | 100.00 | 5-6\n' + 'ℹ --------------------------------------------------------------------------------------------\n' + 'ℹ all files | 78.35 | 43.75 | 60.00 |\n' + 'ℹ --------------------------------------------------------------------------------------------\n' + 'ℹ end of coverage report\n' + '\n' + 'Failed tests:\n' + '\n' + '✖ Error: 78.35% line coverage does not meet threshold of 99%.', expected: 'invalid tap output\n' + '.\n' + 'ℹ Error: 78.35% line coverage does not meet threshold of 99%.\n' + 'ℹ start of coverage report\n' + 'ℹ --------------------------------------------------------------------------------------------\n' + 'ℹ file | line % | branch % | funcs % | uncovered lines\n' + 'ℹ --------------------------------------------------------------------------------------------\n' + 'ℹ test | | | |\n' + 'ℹ fixtures | | | |\n' + 'ℹ test-runner | | | |\n' + 'ℹ coverage.js | 78.65 | 38.46 | 60.00 | 12-13 16-22 27 39 43-44 61-62 66-67 71-72\n' + 'ℹ invalid-tap.js | 100.00 | 100.00 | 100.00 |\n' + 'ℹ v8-coverage | | | |\n' + 'ℹ throw.js | 71.43 | 50.00 | 100.00 | 5-6\n' + 'ℹ --------------------------------------------------------------------------------------------\n' + 'ℹ all files | 78.35 | 43.75 | 60.00 |\n' + 'ℹ --------------------------------------------------------------------------------------------\n' + 'ℹ end of coverage report\n', operator: 'strictEqual', diff: 'simple' } Node.js v27.0.0-pre Command: out/Release/node /Users/runner/work/node/node/no
sccache stats - test-macOS
73% - 3649 hits, 1379 misses, 0 errors