How do i write integration tests that are their own crate?

⚓ Rust    📅 2026-07-19    👤 surdeus    👁️ 2      

surdeus

i am writing a crate that is used inside a build script, and i need to write integration tests for it, which each require their own build script and thus need to be individual crates.

i tried running cargo new inside tests, but neither cargo test nor rust analyzer recognize the crate.

1 post - 1 participant

Read full topic

🏷️ Rust_feed