I'm working on my ToDo Crate and I've gotten to the point of wanting to write integration tests, since I plan to use Test Drive Development (TDD) to complete the project.
In the Rust Book, all it says is "Integration tests are external to your crate and use only its public interface in the same way any other code would"
So does this mean in order to write an integration test I have to:
- Publish the project to crates.io
- Add my own crate as a dependency in the Cargo.toml file
- and download the whole project
in order for
use ClearHeadTodo to work despite the code only being over one folder?
I feel like there should be an immediate way to do it, but if this is how it's supposed to work, it would be good to know that from the community.
As always, thank you for your time and expertise!