-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo runs disabled unit tests when arguments are pased via --
#11191
Labels
C-bug
Category: bug
Comments
RalfJung
changed the title
cargo runs disable tests when arguments are pased via
cargo runs disabled unit tests when arguments are pased via Oct 7, 2022
--
--
RalfJung
added a commit
to RalfJung/miri
that referenced
this issue
Oct 7, 2022
I think cargo has a bug here: rust-lang/cargo#11191 but for now we bless its output so that we can keep CI green
I think this might be the same issue discussed at rust-lang/rust#87586 (comment) and 69ba69f#r86078435 which is being fixed in #11190 |
RalfJung
added a commit
to RalfJung/miri
that referenced
this issue
Oct 8, 2022
I think cargo has a bug here: rust-lang/cargo#11191 but for now we bless its output so that we can keep CI green
RalfJung
added a commit
to RalfJung/miri
that referenced
this issue
Oct 8, 2022
I think cargo has a bug here: rust-lang/cargo#11191 but for now we bless its output so that we can keep CI green
RalfJung
added a commit
to RalfJung/rust
that referenced
this issue
Oct 22, 2022
I think cargo has a bug here: rust-lang/cargo#11191 but for now we bless its output so that we can keep CI green
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
In a crate with
usually cargo does not build and run the unit tests for the lib crate. However when doing
cargo test -- x
, they do get built and run. This seems to be a recent regression.Steps
cargo new --lib mylib
,cd mylib
Cargo.toml
to addcargo test
. It only runs doctests:cargo test -- x
. Now it runs the disabled unittests:It also does not run the doctests.
(This only happens with nightly. With stable, it runs the doctests.)
I would expect it to behave like stable, where it runs the doctests (and passes
x
to the test runner as a filter).Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: