#cargo #cargo-subcommand #testing #cargo-commands

bin+lib cargo-test-all

Cargo extension for running tests of the used dependencies

4 releases

Uses new Rust 2021

new 0.2.0 May 14, 2022
0.1.2 Feb 12, 2020
0.1.1 Feb 12, 2020
0.1.0 Jan 15, 2020

#83 in #cargo-subcommand

Download history 1/week @ 2022-01-28 1/week @ 2022-02-04 3/week @ 2022-02-11 3/week @ 2022-02-18 11/week @ 2022-03-11 14/week @ 2022-03-18 1/week @ 2022-03-25 2/week @ 2022-04-01 2/week @ 2022-04-08 3/week @ 2022-04-22 8/week @ 2022-04-29 19/week @ 2022-05-06 90/week @ 2022-05-13

120 downloads per month


624 lines


Cargo extension for running tests of the used dependencies


  • Running tests for each dependency, specified in Cargo.toml
  • Can be specified only the certain crates for testing
  • Have an opportunity to run multiple threads/workers for building and testing crates


For installation this executable use the following command in your terminal or shell:

  • Install the cargo-clone:
cargo install cargo-clone
  • Install this extension itself:
cargo install cargo-test-all


Use the cargo test-all call at the toplevel of any Cargo project.

Cargo extension for running tests of the used dependencies

    cargo-test-all [OPTIONS]

    -h, --help       Prints help information
    -V, --version    Prints version information

        --only <only>          List of certain crates for testing, separated by comma.
    -t, --threads <threads>    An amount of concurrent threads for testing crates. [default: 1]

How it works

Because the Cargo currently does not provide (as far as I aware) any way to install the dependency with its own tests, it works in the following way:

  1. From the given output determines which crates needs to test.
  2. Creates the target/testing/deps directory that will be used for storing crates downloaded from Crates.io or with Git.
  3. For each crate:
    1. Download crate from the default storage or via Git (if it isn't local).
    2. Move to the folder with code
    3. Build the sources and run tests as the task, executed by the worker
    4. Results of the finished task stored in the main thread and print them out when everything is done.


~1M SLoC