diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 51d33989..bfe675bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,6 @@ jobs: - name: Run tests run: | npm run lint - npm run test cover npm run cover - name: Coveralls diff --git a/modules/dev-tools/scripts/test.sh b/modules/dev-tools/scripts/test.sh index a3516532..1b5b8dea 100755 --- a/modules/dev-tools/scripts/test.sh +++ b/modules/dev-tools/scripts/test.sh @@ -25,7 +25,7 @@ run_test_script_pretty() { } generate_coverage_report() { - (set -x; npx c8 report --reporter=lcov) + (set -x; npx c8 report --reporter=text --reporter=lcov) } run_full_test() { diff --git a/modules/dev-tools/src/test.ts b/modules/dev-tools/src/test.ts index fb6542f4..ff7a2d5c 100644 --- a/modules/dev-tools/src/test.ts +++ b/modules/dev-tools/src/test.ts @@ -19,7 +19,7 @@ console.log(`Running ${mode} tests...`); // eslint-disable-line switch (mode) { case 'cover': if (ocularConfig.coverage.test === 'node') { - runNodeTest(resolveNodeEntry('test'), 'npx c8'); + runNodeTest(resolveNodeEntry('test'), 'npx c8 --reporter=none'); } else { await runBrowserTest({ server: { @@ -186,9 +186,6 @@ function writeCoverage(coverage) { 'utf8' ); } - - // Print coverage to console - execShellCommand('npx c8 report --reporter=text'); } function sourcemapFromDataUrl(url: string): string | null {