Skip to content

Commit 2b859d1

Browse files
committed
add deno task coverage command to generate and preview coverage report
1 parent 84088ad commit 2b859d1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ Thumbs.db
55
node_modules
66
.idea
77
.vscode
8+
cov_profile
9+
cov_profile.lcov

deno.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"tasks": {
33
"test": "deno test",
44
"dev": "deno test --watch test.js",
5+
"coverage": "deno test --coverage=cov_profile && deno coverage cov_profile --lcov --output=cov_profile.lcov && genhtml -o cov_profile/html cov_profile.lcov && open cov_profile/html/TinyColor/mod.js.gcov.html",
56
"serve": "deno run --watch --allow-env --allow-net=unpkg.com,0.0.0.0 --allow-read=. demo/server.jsx",
67
"test-npm": "npm install --prefix npm && npm test --prefix npm",
78
"build": "deno task test && deno run --allow-env --allow-read --allow-write=. build.js && deno task test-npm",

0 commit comments

Comments
 (0)