From 4ca77ad84c46ba4afef95f0b6775377d350b7339 Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Tue, 5 Jan 2021 00:01:21 +0800 Subject: 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. --- cli/tests/integration_tests.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/tests/integration_tests.rs') 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", -- cgit v1.2.3