Skip to content

Commit

Permalink
Monorepo: Simplify coverage Command & Reactivate Reporting (#3789)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
holgerd77 and scorbajio authored Nov 7, 2024
1 parent 0440d5b commit 253e271
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"client:start": "npm run client:start:js --",
"client:start:dev1": "npm run client:start -- --discDns=false --discV4=false --bootnodes",
"client:start:dev2": "npm run client:start -- --discDns=false --discV4=false --port=30304 --dataDir=datadir-dev2",
"coverage": "c8 --all --reporter=lcov --reporter=text npm run test:unit",
"coverage": "npx vitest --coverage --coverage.include=src --coverage.reporter=lcov run test/* -c=./vitest.config.unit.ts",
"docs:build": "typedoc --options typedoc.cjs --tsconfig tsconfig.prod.cjs.json",
"examples": "tsx ../../scripts/examples-runner.ts -- client",
"lint": "../../config/cli/lint.sh",
Expand Down
2 changes: 1 addition & 1 deletion packages/ethash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"scripts": {
"build": "../../config/cli/ts-build.sh",
"clean": "../../config/cli/clean-package.sh",
"coverage": "../../config/cli/coverage.sh",
"coverage": "npx vitest --coverage --coverage.include=src --coverage.reporter=lcov run test/*",
"docs:build": "typedoc --options typedoc.cjs",
"examples": "tsx ../../scripts/examples-runner.ts -- ethash",
"examples:build": "npx embedme README.md",
Expand Down
2 changes: 1 addition & 1 deletion packages/rlp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"build": "../../config/cli/ts-build.sh node",
"build:benchmarks": "npm run build && tsc -p tsconfig.benchmarks.json",
"clean": "../../config/cli/clean-package.sh",
"coverage": "c8 --all --reporter=lcov --reporter=text npm run test:node",
"coverage": "npx vitest --coverage --coverage.include=src run",
"examples": "tsx ../../scripts/examples-runner.ts -- rlp",
"examples:build": "npx embedme README.md",
"lint": "../../config/cli/lint.sh",
Expand Down

0 comments on commit 253e271

Please sign in to comment.