Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/internal/fs/glob.js
Original file line number Diff line number Diff line change
Expand Up @@ -927,13 +927,15 @@ class Glob {
* @param {string} path the path to check
* @param {string} pattern the glob pattern to match
* @param {boolean} windows whether the path is on a Windows system, defaults to `isWindows`
* @param {object} [options] the options for the minimatch module
* @returns {boolean}
*/
function matchGlobPattern(path, pattern, windows = isWindows) {
function matchGlobPattern(path, pattern, windows = isWindows, options = kEmptyObject) {
validateString(path, 'path');
validateString(pattern, 'pattern');
return lazyMinimatch().minimatch(path, pattern, {
kEmptyObject,
...options,
nocase: isMacOS || isWindows,
windowsPathsNoEscape: true,
nonegate: true,
Expand Down
13 changes: 9 additions & 4 deletions lib/internal/test_runner/coverage.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ const kIgnoreRegex = /\/\* node:coverage ignore next (?<count>\d+ )?\*\//;
const kLineEndingRegex = /\r?\n$/u;
const kLineSplitRegex = /(?<=\r?\n)/u;
const kStatusRegex = /\/\* node:coverage (?<status>enable|disable) \*\//;
const kMatchGlobPatternOptions = { __proto__: null, dot: true };

function matchCoverageGlob(path, pattern) {
return matchGlobPattern(path, pattern, undefined, kMatchGlobPatternOptions);
}

class CoverageLine {
constructor(line, startOffset, src, length = src?.length) {
Expand Down Expand Up @@ -481,8 +486,8 @@ class TestCoverage {
if (excludeGlobs?.length > 0) {
for (let i = 0; i < excludeGlobs.length; ++i) {
if (
matchGlobPattern(relativePath, excludeGlobs[i]) ||
matchGlobPattern(absolutePath, excludeGlobs[i])
matchCoverageGlob(relativePath, excludeGlobs[i]) ||
matchCoverageGlob(absolutePath, excludeGlobs[i])
) return true;
}
}
Expand All @@ -491,8 +496,8 @@ class TestCoverage {
if (includeGlobs?.length > 0) {
for (let i = 0; i < includeGlobs.length; ++i) {
if (
matchGlobPattern(relativePath, includeGlobs[i]) ||
matchGlobPattern(absolutePath, includeGlobs[i])
matchCoverageGlob(relativePath, includeGlobs[i]) ||
matchCoverageGlob(absolutePath, includeGlobs[i])
) return false;
}
return true;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const test = require('node:test');
const assert = require('node:assert');
const { foo } = require('../logic-file.js');

test('foo returns 1 from a dotfile test', () => {
assert.strictEqual(foo(), 1);
});
30 changes: 30 additions & 0 deletions test/parallel/test-runner-coverage-default-exclusion.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
});

assert.strictEqual(result.stderr.toString(), '');
assert(result.stdout.toString().includes(report));

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / aarch64-linux: with shared openssl-3.6.1

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / aarch64-linux: with shared openssl-4.0.0

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / aarch64-linux: with shared openssl-1.1.1w

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / aarch64-linux: with shared boringssl-0.20260413.0

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / aarch64-linux: with shared openssl-3.5.5

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / aarch64-linux: with shared openssl-3.0.19

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / x86_64-linux: with shared libraries

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v27.0.0-nightly2026-05-18a32e590fc8-slim/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / test-linux (ubuntu-24.04-arm)

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / test-linux (ubuntu-24.04)

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / test-macOS

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///Users/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///Users/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///Users/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /Users/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / aarch64-linux: with shared openssl-3.0.19

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / aarch64-linux: with shared boringssl-0.20260413.0

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / aarch64-linux: with shared openssl-1.1.1w

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / aarch64-linux: with shared openssl-3.6.1

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / aarch64-linux: with shared openssl-4.0.0

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / aarch64-linux: with shared openssl-3.5.5

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / x86_64-linux: with shared libraries

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/_temp/node-v27.0.0-nightly2026-05-198985d03663-slim/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / test-linux (ubuntu-24.04-arm)

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / test-linux (ubuntu-24.04)

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /home/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs

Check failure on line 85 in test/parallel/test-runner-coverage-default-exclusion.mjs

View workflow job for this annotation

GitHub Actions / test-macOS

--- stdout --- Test failure: 'should exclude test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:60:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///Users/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:85:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude ts test files' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:89:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///Users/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:114:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Test failure: 'should exclude dotfile test files from coverage by default' Location: test/parallel/test-runner-coverage-default-exclusion.mjs:118:3 AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert(result.stdout.toString().includes(report)) at TestContext.<anonymous> (file:///Users/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs:144:5) at Test.runInAsyncScope (node:async_hooks:226:14) at Test.run (node:internal/test_runner/test:1366:25) at async Suite.processPendingSubtests (node:internal/test_runner/test:946:7) { generatedMessage: true, code: 'ERR_ASSERTION', actual: false, expected: true, operator: '==', diff: 'simple' } Command: out/Release/node --test-reporter=./test/common/test-error-reporter.js --test-reporter-destination=stdout /Users/runner/work/node/node/node/test/parallel/test-runner-coverage-default-exclusion.mjs
assert.strictEqual(result.status, 0);
});

Expand Down Expand Up @@ -114,4 +114,34 @@
assert(result.stdout.toString().includes(report));
assert.strictEqual(result.status, 0);
});

it('should exclude dotfile test files from coverage by default', async () => {
const report = [
'# start of coverage report',
'# --------------------------------------------------------------',
'# file | line % | branch % | funcs % | uncovered lines',
'# --------------------------------------------------------------',
'# logic-file.js | 66.67 | 100.00 | 50.00 | 5-7',
'# --------------------------------------------------------------',
'# all files | 66.67 | 100.00 | 50.00 | ',
'# --------------------------------------------------------------',
'# end of coverage report',
].join('\n');

const args = [
'--no-experimental-strip-types',
'--test',
'--experimental-test-coverage',
'--test-reporter=tap',
'test/.dotfile.cjs',
];
const result = spawnSync(process.execPath, args, {
env: { ...process.env, NODE_TEST_TMPDIR: tmpdir.path },
cwd: tmpdir.path
});

assert.strictEqual(result.stderr.toString(), '');
assert(result.stdout.toString().includes(report));
assert.strictEqual(result.status, 0);
});
});
Loading