mirror of
https://github.com/denoland/deno.git
synced 2025-09-23 19:02:31 +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)
7 lines
132 B
TypeScript
7 lines
132 B
TypeScript
import { add } from "./source.ts";
|
|
|
|
Deno.test("add()", () => {
|
|
if (add(1, 2) !== 3) {
|
|
throw new Error("test failed");
|
|
}
|
|
});
|