From 4f974701ff45f785f761af3f9c2b13242f980ce4 Mon Sep 17 00:00:00 2001 From: Codebuff Contributor Date: Wed, 20 May 2026 08:28:13 +0600 Subject: [PATCH] test_runner: print coverage report with dot reporter --- lib/internal/test_runner/reporter/dot.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/internal/test_runner/reporter/dot.js b/lib/internal/test_runner/reporter/dot.js index 45ff047bc4e5a0..15645695f1597b 100644 --- a/lib/internal/test_runner/reporter/dot.js +++ b/lib/internal/test_runner/reporter/dot.js @@ -4,6 +4,7 @@ const { MathMax, } = primordials; const colors = require('internal/util/colors'); +const { getCoverageReport } = require('internal/test_runner/utils'); const { formatTestReport } = require('internal/test_runner/reporter/utils'); module.exports = async function* dot(source) { @@ -18,6 +19,9 @@ module.exports = async function* dot(source) { yield `${colors.red}X${colors.reset}`; ArrayPrototypePush(failedTests, data); } + if (type === 'test:coverage') { + yield getCoverageReport('', data.summary, '', '', true); + } if ((type === 'test:fail' || type === 'test:pass') && ++count === columns) { yield '\n';