Skip to content

Commit

Permalink
Merge pull request #18897 from duncanawoods/master
Browse files Browse the repository at this point in the history
fix: Make test_runner::TestState::stdout optional to fix parsing cargo test json output
  • Loading branch information
HKalbasi authored Jan 15, 2025
2 parents 759a9e6 + 04c06b4 commit 7d337c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/rust-analyzer/src/test_runner.rs
Original file line number Diff line number Diff line change
@@ -18,7 +18,11 @@ pub(crate) enum TestState {
Started,
Ok,
Ignored,
Failed { stdout: String },
Failed {
// the stdout field is not always present depending on cargo test flags
#[serde(skip_serializing_if = "String::is_empty", default)]
stdout: String,
},
}

#[derive(Debug, Deserialize)]

0 comments on commit 7d337c7

Please sign in to comment.