summaryrefslogtreecommitdiff
path: root/cli/tests/integration_tests.rs
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-01-05 00:01:21 +0800
committerGitHub <noreply@github.com>2021-01-04 17:01:21 +0100
commit4ca77ad84c46ba4afef95f0b6775377d350b7339 (patch)
tree0b1331508fb0774fccb88e7c527a2ffd48b43848 /cli/tests/integration_tests.rs
parent3e5a3daf5983d9c6fd6b9cbf9a5b46abb9602346 (diff)
fix(coverage): merge duplicate reports (#8942)
Merging multiple runs isn't quite right because we rely on a 0 count to signal that a block hasn't been called. Other tools like c8 expect this to be true as-well so we need to do our best to merge coverage files rather than duplicating them.
Diffstat (limited to 'cli/tests/integration_tests.rs')
-rw-r--r--cli/tests/integration_tests.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 9dc4df7cb..199172e2c 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -3330,6 +3330,12 @@ itest!(deno_test_run_run_coverage {
exit_code: 0,
});
+itest!(deno_test_run_combined_coverage {
+ args: "test --allow-all --coverage --unstable test_run_run_coverage.ts test_run_test_coverage.ts",
+ output: "test_run_combined_coverage.out",
+ exit_code: 0,
+});
+
itest!(deno_lint {
args: "lint --unstable lint/file1.js lint/file2.ts lint/ignored_file.ts",
output: "lint/expected.out",