You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2021. It is now read-only.
Internally this could be achieved by splitting Assert
pubstructAssert{cmd:Vec<String>,expect:Vec<Expect>,// <-- delegate to a sub component,// which we can now put in vec// `.or` would simply push a fresh layer}structExpect{success:Option<bool>,exit_code:Option<i32>,stdout:Option<OutputAssertion>,stderr:Option<OutputAssertion>,}
The biggest challenge would be displaying failures. Here is a suggestion, that should be more or less readable even for large chunks or in the multi-line case - each or-branch will report only the first assertion that failed
'CLI assertion failed: `([1/2] stdout of `echo 42` expected to contain `"41"`)` (output was: `"42\n"`)'
or `([2/2] stdout of `echo 42` expected to contain `"1337"`)` (output was: `"42\n"`)'