Skip to content

Add a --test-threads option for rustc test binaries #25636

Closed
@jimmycuadra

Description

@jimmycuadra

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions