Skip to content
This repository was archived by the owner on Jun 3, 2021. It is now read-only.

Commit 496bc5a

Browse files
committed
relay stdout and stderr during example tests, making them easier to debug
1 parent e184a09 commit 496bc5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/examples.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ pub fn test_run_from_directory(directory: &str) -> R<()> {
2323
fs::read(&expected_file)
2424
.map_err(|error| format!("error reading {:?}: {}", &expected_file, error))?,
2525
)?;
26+
print!("{}", context.get_captured_stdout());
27+
eprintln!("{}", context.get_captured_stderr());
2628
assert_eq!(exitcode, ExitCode(0));
2729
assert_eq!(context.get_captured_stdout(), expected);
2830
Ok(())

0 commit comments

Comments
 (0)