-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Cargo test where bin and lib have identical name #111
Comments
Can you provide a way to reproduce this? For example, this works: [project]
name = "test"
version = "0.1.0"
authors = []
[[lib]]
name = "foo"
[[bin]]
name = "bar"
|
@alexcrichton Aha. It's when you have a binary with the same name as the library. |
This appears to be because both the library and the executable output their tests to |
thehydroimpulse
changed the title
Cargo test w/ [[bin]] not running correctly
Cargo test where bin and lib have identical name
Jul 5, 2014
thehydroimpulse
changed the title
Cargo test where bin and lib have identical name
Bug: Cargo test where bin and lib have identical name
Jul 5, 2014
alexcrichton
added a commit
to alexcrichton/cargo
that referenced
this issue
Jul 22, 2014
This was fixed when rustc properly added extra-filename to all temp outputs as opposed to just libraries. Closes rust-lang#111
bors
added a commit
that referenced
this issue
Jul 22, 2014
This was fixed when rustc properly added extra-filename to all temp outputs as opposed to just libraries. Closes #111
alexcrichton
added a commit
to alexcrichton/cargo
that referenced
this issue
Sep 2, 2014
This was fixed when rustc properly added extra-filename to all temp outputs as opposed to just libraries. Closes rust-lang#111
bors
added a commit
to alexcrichton/cargo
that referenced
this issue
Sep 2, 2014
This was fixed when rustc properly added extra-filename to all temp outputs as opposed to just libraries. Closes rust-lang#111
ehuss
pushed a commit
to ehuss/cargo
that referenced
this issue
Nov 19, 2023
…rgo-fix-tests Overwrite RUST_LOG env var in cargo-fix tests
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you have both
[[bin]]
and[[lib]]
directives, the tests are only ran for binaries and not for the library.The text was updated successfully, but these errors were encountered: