Skip to content

Commit

Permalink
Print output on fail from test_dart_runtime_autotest
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Oct 9, 2024
1 parent dd121a6 commit ff20b87
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions serde-generate/tests/dart_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,16 @@ fn install_test_dependency(path: &Path) -> Result<()> {
fn test_dart_runtime_autotest() {
// Not setting PUB_CACHE here because this is the only test run
// with the default config anyway.
let dart_test = Command::new(DART_EXECUTABLE)
let output = Command::new(DART_EXECUTABLE)
.current_dir("runtime/dart")
.args(["test", "-r", "expanded"])
.status()
.output()
.unwrap();

assert!(dart_test.success());
if !output.status.success() {
let error_output = String::from_utf8_lossy(&output.stdout);
eprintln!("{}", error_output);
}
assert!(output.status.success());
}

#[test]
Expand Down

0 comments on commit ff20b87

Please sign in to comment.