mirror of
https://github.com/denoland/deno.git
synced 2025-09-24 19:32:30 +00:00
feat(test): create coverage reports when --coverage specified in deno test (#28260)
This PR updates the behavior of `deno test --coverage` option. Now if `--coverage` option is specified, `deno test` command automatically shows summary report in the terminal, and generates the lcov report in `$coverage_dir/lcov.info` and html report in `$coverage_dir/html/` This change also adds `--coverage-raw-data-only` flag, which prevents the above reports generated, instead only generates the raw json coverage data (which is the same as current behavior)
This commit is contained in:
parent
0bb16651c0
commit
83f15ece09
20 changed files with 203 additions and 36 deletions
1
tests/specs/coverage/default_reports/cat.ts
Normal file
1
tests/specs/coverage/default_reports/cat.ts
Normal file
|
@ -0,0 +1 @@
|
|||
console.log(await Deno.readTextFile(Deno.args[0]));
|
Loading…
Add table
Add a link
Reference in a new issue