Is there any way to include this using cargo test?
@christopher-wilke I'm not sure what you are asking?
@bachp: Sorry for being a bit too unclear here! A typical tests looks like this.
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
assert_eq!(2 + 2, 4);
}
}
You can then run cargo test to see if your tests succeeded or failed.
Is there any way to include junit-report-rs using the approach above?
If I understand correctly you like to format the output of cargo test into a junit compatible format.
This is outside of the scope of this crate, but there is another project called cargo2junit that might do what you want.
If I understand correctly you like to format the output of
cargo testinto a junit compatible format.This is outside of the scope of this crate, but there is another project called cargo2junit that might do what you want.
Thanks for your reply! Unfortunately, cargo is not available on our target platform, we only have the compiled binary.