Skip to content

Commit 253e271

Browse files
holgerd77am1r021
andauthored
Monorepo: Simplify coverage Command & Reactivate Reporting (#3789)
* Test coverage command for RLP without c8 usage * Convert client to use vitest lcov provider * Convert ethash to use vitest lcov provider * Explicitly pass in tests directory --------- Co-authored-by: Amir <[email protected]>
1 parent 0440d5b commit 253e271

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"client:start": "npm run client:start:js --",
4141
"client:start:dev1": "npm run client:start -- --discDns=false --discV4=false --bootnodes",
4242
"client:start:dev2": "npm run client:start -- --discDns=false --discV4=false --port=30304 --dataDir=datadir-dev2",
43-
"coverage": "c8 --all --reporter=lcov --reporter=text npm run test:unit",
43+
"coverage": "npx vitest --coverage --coverage.include=src --coverage.reporter=lcov run test/* -c=./vitest.config.unit.ts",
4444
"docs:build": "typedoc --options typedoc.cjs --tsconfig tsconfig.prod.cjs.json",
4545
"examples": "tsx ../../scripts/examples-runner.ts -- client",
4646
"lint": "../../config/cli/lint.sh",

packages/ethash/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"scripts": {
3535
"build": "../../config/cli/ts-build.sh",
3636
"clean": "../../config/cli/clean-package.sh",
37-
"coverage": "../../config/cli/coverage.sh",
37+
"coverage": "npx vitest --coverage --coverage.include=src --coverage.reporter=lcov run test/*",
3838
"docs:build": "typedoc --options typedoc.cjs",
3939
"examples": "tsx ../../scripts/examples-runner.ts -- ethash",
4040
"examples:build": "npx embedme README.md",

packages/rlp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"build": "../../config/cli/ts-build.sh node",
4848
"build:benchmarks": "npm run build && tsc -p tsconfig.benchmarks.json",
4949
"clean": "../../config/cli/clean-package.sh",
50-
"coverage": "c8 --all --reporter=lcov --reporter=text npm run test:node",
50+
"coverage": "npx vitest --coverage --coverage.include=src run",
5151
"examples": "tsx ../../scripts/examples-runner.ts -- rlp",
5252
"examples:build": "npx embedme README.md",
5353
"lint": "../../config/cli/lint.sh",

0 commit comments

Comments
 (0)