Cargo test attribute to making sure a function is called during integration test

I have an Integration test which uses a helper function (which is also part integration_test.rs) . this helper function is a function callback and is called when an event event_foo occurs. I wanted to know is there any Cargo test attribute available to make sure this helper function is called during the test execution when the event event_foo occurs.

1 Like

I had the same idea, but it didn't get much attention New lint suggestion: doctest doesn't use documented item · Issue #9228 · rust-lang/rust-clippy · GitHub

I've used cov_mark - Rust for this sort of thing.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.