Cargo test with server startup/shutdown

I have a gRPC project consisting of a server and associated client. I am using #[tokio::test] in the client to test server functions. is there a way to start and stop the server part so I can write tests to validate functionality.

I think I saw a reasonable example in the reqwest library. I know I saw one in one of the Rust networking crates.

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.