From 19f8a71ae77e7f80118ed69e97f74a544f40ccf1 Mon Sep 17 00:00:00 2001 From: Fil Maj Date: Wed, 1 Mar 2023 13:06:32 -0500 Subject: [PATCH] Integrate a better CLI utility for generating code coverage reports. (#56) --- .gitignore | 3 ++- deno.jsonc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 2cf6e14..c29f26c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .coverage -.DS_Store \ No newline at end of file +.DS_Store +lcov.info diff --git a/deno.jsonc b/deno.jsonc index 62b2911..fc0b484 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -24,8 +24,8 @@ } }, "tasks": { - "test": "deno fmt --check && deno lint && deno test --allow-read --allow-net", - "coverage": "deno test --allow-read --allow-net --coverage=.coverage && deno coverage --exclude=fixtures --exclude=test .coverage" + "test": "deno fmt --check && deno lint && deno test --allow-read --allow-net src", + "coverage": "deno test --allow-read --allow-net --coverage=.coverage src && deno coverage --exclude=fixtures --exclude=test --lcov --output=lcov.info .coverage && deno run --allow-read https://deno.land/x/code_coverage@0.2.0/cli.ts" }, "lock": false }