summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2020-09-28 18:22:29 +0800
committerGitHub <noreply@github.com>2020-09-28 12:22:29 +0200
commit6587d1bce80fe6beef7353efcf00a674438e6e4e (patch)
tree81fb39591a8593b06cd91c18d31f6409ffcb5868 /cli/main.rs
parent45d4fd44c9444241a898d3075b99e8871fccdd65 (diff)
fix(cli/test): do not start inspector server when collecting coverage (#7718)
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 1518ca98e..f888a6c6c 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -543,7 +543,6 @@ async fn test_command(
quiet: bool,
allow_none: bool,
filter: Option<String>,
- coverage: bool,
) -> Result<(), AnyError> {
let global_state = GlobalState::new(flags.clone())?;
let cwd = std::env::current_dir().expect("No current directory");
@@ -587,7 +586,7 @@ async fn test_command(
.file_fetcher
.save_source_file_in_cache(&main_module, source_file);
- let mut maybe_coverage_collector = if coverage {
+ let mut maybe_coverage_collector = if flags.coverage {
let inspector = worker
.inspector
.as_mut()
@@ -737,11 +736,8 @@ pub fn main() {
include,
allow_none,
filter,
- coverage,
- } => test_command(
- flags, include, fail_fast, quiet, allow_none, filter, coverage,
- )
- .boxed_local(),
+ } => test_command(flags, include, fail_fast, quiet, allow_none, filter)
+ .boxed_local(),
DenoSubcommand::Completions { buf } => {
if let Err(e) = write_to_stdout_ignore_sigpipe(&buf) {
eprintln!("{}", e);