Forrest logo
back to context overview

cargo-test

List of commands for cargo-test:

  • cargo-test:tldr:7838d cargo-test: Run tests for a package.
    $ cargo test --package ${package}
    try on your machine
    explain this command
  • cargo-test:tldr:a72ad cargo-test: Test all packages in the workspace.
    $ cargo test --workspace
    try on your machine
    explain this command
  • cargo-test:tldr:a7b55 cargo-test: Test artifacts in release mode, with optimizations.
    $ cargo test --release
    try on your machine
    explain this command
  • cargo-test:tldr:e4fe6 cargo-test: Only run tests containing a specific string in their names.
    $ cargo test ${testname}
    try on your machine
    explain this command
  • cargo-test:tldr:f1292 cargo-test: Require that `Cargo.lock` is up to date.
    $ cargo test --locked
    try on your machine
    explain this command
back to context overview