deno/tests/specs/run/run_coverage/child_process_coverage_test.out
Yoshiya Hinosawa 56d7660ee4
feat(cli): add --coverage flag to deno run command (#29329)
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>
2025-06-25 13:34:30 +02:00

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