mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00

closes #16440 This PR adds `--coverage` flag to `deno run` command. When the flag is specified, it generates the coverage profile in the directory specified (default is `coverage`). The coverage directory can also be specified from the env var `DENO_COVERAGE_DIR`. --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
13 lines
512 B
Text
13 lines
512 B
Text
Check file:///[WILDLINE]child_process_coverage_test.ts
|
|
running 2 tests from ./child_process_coverage_test.ts
|
|
foo 1 0 ... ok ([WILDLINE]s)
|
|
foo 0 1 ... ok ([WILDLINE]s)
|
|
|
|
ok | 2 passed | 0 failed ([WILDLINE]s)
|
|
|
|
| File | Branch % | Line % |
|
|
| --------- | -------- | ------ |
|
|
| foo.ts | 100.0 | 100.0 |
|
|
| All files | 100.0 | 100.0 |
|
|
Lcov coverage report has been generated at file:///[WILDLINE]/coverage/lcov.info
|
|
HTML coverage report has been generated at file:///[WILDLINE]/coverage/html/index.html
|