Closed
Description
Discussion carried over from: rust-lang/cargo#1591
Test binaries created by rustc should have a --test-threads
option instead of (in addition to?) controlling the thread count with RUST_TEST_THREADS
. It's not a consistent user experience to have some functionality controlled via environment variables and some via command line options. CLI options should be preferred since they encourage users to keep configuration local to a single execution of a test binary and not export it globally, making it affect other test runs perhaps accidentally. It would also make the output of test_binary -h
more uniform and compact.