Skip to content

Multiple --package parameters #1528

Closed
Closed
@SimonSapin

Description

@SimonSapin

If foo is a dependency, I can run its tests with cargo test -p foo or cargo test --package foo.

I’d like to test many dependencies with cargo test -p foo -p bar -p baz and take advantage of Cargo’s built-in parallelism.

Currently, a cargo command only accepts at most one -p parameter. So I have to run multiple commands: cargo test -p foo && cargo test -p bar && cargo test -p baz. These commands can not run in parallel with each other because of #354.

This also applies to other Cargo commands (build, doc, bench, …) that accept --package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-configurationArea: cargo config files and env varsE-easyExperience: Easy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions