summaryrefslogtreecommitdiff
path: root/cli/tests/test_run_run_coverage.ts
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2020-12-28 23:51:26 +0800
committerGitHub <noreply@github.com>2020-12-28 16:51:26 +0100
commit091059450eab50c1975fb0d3ecd4fcdefcb22b76 (patch)
treebc36370f606a822ee04408b22e06f7a25e24a63e /cli/tests/test_run_run_coverage.ts
parentc98c487fdad70f31153b44ce214824a4c7b58fe6 (diff)
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).
Diffstat (limited to 'cli/tests/test_run_run_coverage.ts')
-rw-r--r--cli/tests/test_run_run_coverage.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/tests/test_run_run_coverage.ts b/cli/tests/test_run_run_coverage.ts
new file mode 100644
index 000000000..448b15e7b
--- /dev/null
+++ b/cli/tests/test_run_run_coverage.ts
@@ -0,0 +1,14 @@
+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();
+});