Hi everyone, I have a REST API. Axum and SQLx are the most used crates in the project (ask for more information if interested).
I want to add unit and integration tests. I read in https://doc.rust-lang.org/book/ch11-03-test-organization.html that it is common to have unit tests defined inside the file of the function that they test and have a folder in the src directory named ‘tests’ for integration tests.
Is it also possible to put the unit tests in the src/tests folder like in the example in some way to keep the tests separate from the actual logic they are testing?
I added a screenshot of my desired folder structure in regard to the tests.