Merge pull request #18897 from duncanawoods/master
fix: Make test_runner::TestState::stdout optional to fix parsing cargo test json output
This commit is contained in:
commit
88ae0896f9
1 changed files with 5 additions and 1 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue