1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-15 03:48:02 -05:00
denoland-deno/cli/tests/test_run_run_coverage.ts
Casper Beyer 091059450e
feat(unstable): collect coverage from the run command (#8893)
This adds implicit coverage collection to the run command 
when a coverage collection directory is set (via an environment 
variable).
2020-12-28 16:51:26 +01:00

14 lines
249 B
TypeScript

Deno.test("spawn test", async function () {
const process = Deno.run({
cmd: [
Deno.execPath(),
"run",
"--allow-all",
"--unstable",
"run_coverage.ts",
],
});
await process.status();
process.close();
});