logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Cargo Test - Execute Rust Tests | Online Free DevTools by Hexmos

Execute Rust package tests with Cargo Test. Debug Rust code, optimize test execution and control test concurrency. Free online tool, no registration required.

cargo-test

Execute the unit and integration tests of a Rust package. More information: https://doc.rust-lang.org/cargo/commands/cargo-test.html.

  • Only run tests containing a specific string in their names:

cargo {{[t|test]}} {{test_name}}

  • Set the number of simultaneous running test cases:

cargo {{[t|test]}} -- --test-threads {{count}}

  • Test artifacts in release mode, with optimizations:

cargo {{[t|test]}} {{[-r|--release]}}

  • Test all packages in the workspace:

cargo {{[t|test]}} --workspace

  • Run tests for a specific package:

cargo {{[t|test]}} {{[-p|--package]}} {{package}}

  • Run tests without hiding output from test executions:

cargo {{[t|test]}} -- --nocapture

See Also