Replies: 2 comments
-
|
The convention suggested by the Rust book seems to be of unit tests along with source code, and integration tests in their own files. https://doc.rust-lang.org/book/ch11-03-test-organization.html The rationale seems to be that it's easier to access private functions that way. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Agreed with @lucaspar: we don't have any integration tests currently, and most tests are very module-specific. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
should the tests be moved from source files to their own module (src/tests/ for example)? i think its a good idea to separate them from the main code. thoughts?
Beta Was this translation helpful? Give feedback.
All reactions