chore: update coverage tasks (#3965)

This commit is contained in:
Asher Gomez 2023-12-16 06:42:09 +11:00 committed by GitHub
parent 576fbc312f
commit 66e8a50e2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ cov.lcov
/http/testdata/%25A.txt
/http/testdata/file#2.txt
/http/testdata/test file.txt
/coverage/

View File

@ -12,7 +12,7 @@
"automation/": "https://raw.githubusercontent.com/denoland/automation/0.10.0/"
},
"tasks": {
"test": "deno test --doc --unstable --allow-all --parallel --coverage=./cov --trace-ops",
"test": "deno test --doc --unstable --allow-all --parallel --coverage --trace-ops",
"test:browser": "git grep --name-only \"This module is browser compatible.\" | grep -v deno.json | grep -v .github/workflows | grep -v _tools | xargs deno check --config browser-compat.tsconfig.json",
"fmt:licence-headers": "deno run --allow-read --allow-write ./_tools/check_licence.ts",
"lint:deprecations": "deno run --allow-read --allow-net --allow-env=HOME ./_tools/check_deprecation.ts",
@ -23,9 +23,8 @@
"typos": "typos -c ./.github/workflows/typos.toml",
"build:crypto": "deno task --cwd crypto/_wasm wasmbuild",
"wasmbuild": "deno run --unstable -A https://deno.land/x/wasmbuild@0.15.3/main.ts --js-ext mjs --sync",
"cov:clean": "rm -rf cov html_cov cov.lcov",
"cov:gen": "deno coverage ./cov/ --lcov --output=cov.lcov",
"cov:view": "genhtml --ignore-errors unmapped -o html_cov cov.lcov && open html_cov/index.html",
"cov:gen": "deno coverage coverage --lcov --output=cov.lcov",
"cov:view": "deno coverage --html coverage",
"ok": "deno task lint && deno fmt --check && deno task test:browser && deno task test"
},
"exclude": [