You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cargo new by default creates a package with a main binary target, so no unit tests for it. If you run cargo new --lib it does create a unit test for the new “library” package. Cargo tries to put a proper amount of code of a new project.
Do you have any thought on what a unit test should look like in a package with a binary target?
Problem
why is there no unit test in the project created with
cargo new
??Proposed Solution
No response
Notes
No response
The text was updated successfully, but these errors were encountered: