run-tests
Installation
SKILL.md
Run Tests & Verify
How to run tests, lint, and verify changes in the cx CLI. This skill covers running only - for writing new tests, see the add-command skill.
Quick Reference
| Command | What it does |
|---|---|
cargo test |
Run all unit + integration tests |
cargo test <name> |
Run tests matching a name substring |
cargo test -- --ignored |
Run integration tests (filesystem-dependent, skipped by default) |
cargo fmt --check |
Check formatting (no changes) |
cargo fmt |
Auto-fix formatting |
cargo clippy --locked -- -D warnings |
Lint with warnings-as-errors |
cargo build |
Verify compilation |
Full CI Check
This is the exact sequence CI runs on every PR. Run it before committing or creating a PR: