Skip to content

Commit

Permalink
chore: add more coverage tasks to deno.json
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackAsLight committed Feb 12, 2025
1 parent b7c76d5 commit 837f26e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:

- name: Run tests
run: |
deno task test
deno task test --doc
deno task test:with-unsafe-proto
- name: Run timezone-dependent tests
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workspace_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: deno fmt --check

- name: Test
run: deno task test
run: deno task test --doc

- name: Publish to JSR
run: deno publish
9 changes: 6 additions & 3 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"importMap": "./import_map.json",
"tasks": {
"test": "deno test --unstable-http --unstable-webgpu --doc --allow-all --parallel --coverage --trace-leaks --clean",
"test": "deno test --unstable-http --unstable-webgpu --allow-all --parallel --trace-leaks",
"test:with-unsafe-proto": "deno test --unstable-http --unstable-webgpu --unstable-unsafe-proto --doc --allow-all --parallel --coverage --trace-leaks --clean",
"test:browser": "git grep --name-only \"This module is browser compatible.\" | grep -v deno.json | grep -v .github/workflows | grep -v _tools | grep -v encoding/README.md | grep -v media_types/vendor/update.ts | xargs deno check --config browser-compat.tsconfig.json",
"test:node": "(cd _tools/node_test_runner && npm install) && node --import ./_tools/node_test_runner/register_deno_shim.mjs ./_tools/node_test_runner/run_test.mjs",
Expand All @@ -24,10 +24,13 @@
"typos": "typos -c ./.github/workflows/typos.toml",
"build:crypto": "deno task --cwd crypto/_wasm wasmbuild",
"wasmbuild": "deno run -A jsr:@deno/[email protected] --js-ext mjs --sync",
"cov": "deno coverage --ignore=\"**/*.generated.mjs,**/_test_utils.ts,.github\"",
"cov": "deno task test --coverage --clean --reporter=dot && deno coverage --ignore=\"**/*.generated.mjs,**/_test_utils.ts,.github\"",
"cov:gen": "deno task cov --lcov --output=cov.lcov",
"cov:view": "deno task cov --html",
"ok": "deno task lint && deno fmt --check && deno task test:browser && deno task test"
"cov:mac": "deno task cov:view && open coverage/html/index.html",
"cov:lin": "deno task cov:view && xdg-open coverage/html/index.html",
"cov:win": "deno task cov:view && start coverage/html/index.html",
"ok": "deno task lint && deno fmt --check && deno task test:browser && deno task test --doc"
},
"exclude": [
".git",
Expand Down

0 comments on commit 837f26e

Please sign in to comment.