From 9e328da641ea11cdffe1cd634b4cbdf7519a314f Mon Sep 17 00:00:00 2001 From: liv <819880950@qq.com> Date: Mon, 22 Apr 2019 05:49:23 +0200 Subject: [PATCH] use -- --nocapture when testing --- src/exercise.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/exercise.rs b/src/exercise.rs index e0c6ce7..a886d2f 100644 --- a/src/exercise.rs +++ b/src/exercise.rs @@ -38,6 +38,7 @@ impl Exercise { Mode::Test => Command::new("rustc") .args(&["--test", self.path.to_str().unwrap(), "-o", &temp_file()]) .args(RUSTC_COLOR_ARGS) + .args(&["--" "--nocapture"]) .output(), } .expect("Failed to run 'compile' command.")