Skip to content

Commit 56a8e52

Browse files
committed
println to log debug in tests
1 parent c129e2d commit 56a8e52

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

tmc-langs-cli/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ mod output;
66
use output::{Output, OutputResult, Status};
77

88
use anyhow::{Context, Result};
9+
use clap::{Error, ErrorKind};
910
use serde::Serialize;
1011
use std::collections::HashMap;
1112
use std::env;

tmc-langs-cli/tests/non_core.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn compress_project() {
2222
"--output-path",
2323
temp.path().join("zip.zip").to_str().unwrap(),
2424
]);
25-
println!("out:\n{}", String::from_utf8(out.stdout).unwrap());
26-
println!("err:\n{}", String::from_utf8(out.stderr).unwrap());
25+
log::debug!("out:\n{}", String::from_utf8(out.stdout).unwrap());
26+
log::debug!("err:\n{}", String::from_utf8(out.stderr).unwrap());
2727
// TODO
2828
}

tmc-langs-framework/src/io/zip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ mod test {
252252
.unwrap();
253253
let mut archive = ZipArchive::new(Cursor::new(zipped)).unwrap();
254254
for i in 0..archive.len() {
255-
println!("{:?}", archive.by_index(i).unwrap().name());
255+
log::debug!("{:?}", archive.by_index(i).unwrap().name());
256256
}
257257
assert!(archive
258258
.by_name("exercise-name/src/main/java/AdaLovelace.java")

tmc-langs-java/src/maven.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ mod test {
306306
let test_path = temp_dir.path();
307307
let plugin = MavenPlugin::new().unwrap();
308308
let class_path = plugin.get_project_class_path(test_path).unwrap();
309-
println!("{}", class_path);
309+
log::debug!("{}", class_path);
310310
let expected = format!("{0}junit{0}", std::path::MAIN_SEPARATOR);
311311
assert!(class_path.contains(&expected));
312312
}
@@ -316,7 +316,7 @@ mod test {
316316
init();
317317

318318
use std::path::PathBuf;
319-
println!("{}", PathBuf::from(".").canonicalize().unwrap().display());
319+
log::debug!("{}", PathBuf::from(".").canonicalize().unwrap().display());
320320

321321
let temp_dir = copy_test_dir("tests/data/maven_exercise");
322322
let test_path = temp_dir.path();

0 commit comments

Comments
 (0)