Closed
Description
Problem
When running cargo test xyz
, cargo ignores all test flags in the cargo.toml
file.
Steps
- create project
cargo init xyz
- add
#[test] fn random{}
to yourmain.rs
- add the following to your
Cargo.toml
[[bin]]
name = "main"
path = "src/main.rs"
test = false
- type
cargo test
and then typecargo test xyz
Possible Solution(s)
No response
Notes
No response
Version
cargo 1.59.0-nightly (358e79fe5 2022-01-04)