Skip to content

Commit

Permalink
Write some temporary C# test code
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Oct 9, 2024
1 parent a7a9ae8 commit f5d1489
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions serde-generate/tests/csharp_generation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,16 @@ fn test_that_csharp_code_compiles_with_config(
let proj_path = dir_path.join(config.module_name().replace('.', "/"));
{
let _lock = MUTEX.lock();
let status = Command::new("dotnet")
let output = Command::new("dotnet")
.arg("build")
.current_dir(&proj_path)
.status()
.output()
.unwrap();
assert!(status.success());
if !output.status.success() {
let error_output = String::from_utf8_lossy(&output.stdout);
eprintln!("{}", error_output);
}
assert!(output.status.success());
}

(dir, proj_path)
Expand Down

0 comments on commit f5d1489

Please sign in to comment.