mirror of
https://github.com/denoland/deno.git
synced 2025-09-24 19:32:30 +00:00

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)
18 lines
668 B
Text
18 lines
668 B
Text
Check [WILDCARD]/test.ts
|
|
Check [WILDCARD]/source.ts$[WILDCARD].ts
|
|
running 1 test from ./test.ts
|
|
add() ... ok ([WILDCARD])
|
|
running 1 test from ./source.ts$[WILDCARD].ts
|
|
file:///[WILDCARD]/source.ts$[WILDCARD].ts ... ok ([WILDCARD])
|
|
|
|
ok | 2 passed | 0 failed ([WILDCARD])
|
|
|
|
--------------------------------
|
|
File | Branch % | Line % |
|
|
--------------------------------
|
|
source.ts | 100.0 | 100.0 |
|
|
--------------------------------
|
|
All files | 100.0 | 100.0 |
|
|
--------------------------------
|
|
Lcov coverage report has been generated at file://[WILDCARD]/coverage/lcov.info
|
|
HTML coverage report has been generated at file://[WILDCARD]/coverage/html/index.html
|