rust-lang / libtest

Rust's built-in testing and benchmarking framework
Apache License 2.0
60 stars 21 forks source link

Cargo test with the option 'include-ignored' yields error #21

Closed arucil closed 5 years ago

arucil commented 5 years ago

I'm using a nightly compiler (by running rustup install nightly && rustup default nightly) and ran the following testing command,

cargo test -- --include-ignored

This command yields the error

error: The "include-ignored" flag is only accepted on the nightly compiler

I have also tried adding the +nightly option, that didn't work either.

The version of the compiler I'm using is

nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.39.0-nightly (6ef275e6c 2019-09-24)
pragmatrix commented 5 years ago

Try cargo test -- -Z unstable-options --include-ignored.

arucil commented 5 years ago

Try cargo test -- -Z unstable-options --include-ignored.

@pragmatrix That solved my problem, thank you !