rust-testing

Installation
SKILL.md

Rust Testing and Benchmarking

Based on Chapter 11 of The Rust Programming Language and the Rust Book.

Capability Boundaries

✅ Strengths

  1. Unit tests (using #[test], organizing test modules with #[cfg(test)])
  2. Assertion macros (assert!, assert_eq!, assert_ne!, debug_assert!)
  3. Test attributes (#[should_panic], #[ignore], #[cfg(test)])
  4. Integration tests (tests/ directory and shared modules)
  5. Documentation tests (code blocks, hidden lines with #, should_panic/no_run/ignore flags)
  6. cargo test runner (filtering, --nocapture, --test-threads, --include-ignored options)
  7. Stable Criterion benchmarks; explicitly distinguishing stable Criterion from nightly-only libtest #[bench] attribute
  8. Code coverage using cargo-llvm-cov
  9. Asynchronous race conditions, backpressure, timeouts, process/daemon models, platform matrices, and resource-constrained testing

⚠️ Prerequisites

  1. Understanding of Rust module system (rust-workspace)
Installs
4
GitHub Stars
1
First Seen
13 days ago
rust-testing — full-stack-skills/rust-skills