mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +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)
20 lines
383 B
JSON
20 lines
383 B
JSON
{
|
|
"tempDir": true,
|
|
"steps": [
|
|
{
|
|
"args": "test --coverage --doc",
|
|
"output": "main.out",
|
|
"exitCode": 0
|
|
},
|
|
{
|
|
"args": "run -A cat.ts coverage/lcov.info",
|
|
"output": "lcov_info.out",
|
|
"exitCode": 0
|
|
},
|
|
{
|
|
"args": "run -A cat.ts coverage/html/index.html",
|
|
"output": "html_index_html.out",
|
|
"exitCode": 0
|
|
}
|
|
]
|
|
}
|