cargo doesn't include test = false tests in --tests or --all-targets #13828
Labels
A-cargo-targets
Area: selection and definition of targets (lib, bins, examples, tests, benches)
C-bug
Category: bug
S-triage
Status: This issue is waiting on initial triage.
Problem
A test marked as
test = false
is supposed to not be run when invokingcargo test
.This works, however, not only is the test not run, it's not built or checked (when using
cargo check
) either, not even with--tests
or--all-targets
passed.As a workaround, I'm currently using
--tests \*
instead of--tests
to actually include all tests includingtest = false
ones.Steps
test = false
inCargo.toml
cargo check --tests
cargo check --test \*
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: