Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any way to include this using cargo test? #22

Open
christopher-wilke opened this issue Mar 4, 2022 · 4 comments
Open

Is there any way to include this using cargo test? #22

christopher-wilke opened this issue Mar 4, 2022 · 4 comments

Comments

@christopher-wilke
Copy link

No description provided.

@bachp
Copy link
Owner

bachp commented Mar 4, 2022

@christopher-wilke I'm not sure what you are asking?

@christopher-wilke
Copy link
Author

christopher-wilke commented Mar 5, 2022

@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?

@bachp
Copy link
Owner

bachp commented Mar 5, 2022

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.

@christopher-wilke
Copy link
Author

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.

Thanks for your reply! Unfortunately, cargo is not available on our target platform, we only have the compiled binary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants