| name | test |
| description | Run the test suite. Use when running tests, checking test results, or when the user asks to test code. |
| argument-hint | ["test-name or --coverage"] |
| allowed-tools | Bash(cargo *) |
Run Tests
Execute the test suite for olx-tracker.
Commands
cargo test
cargo test $ARGUMENTS
cargo test -- --nocapture
cargo test --lib
Coverage
When $ARGUMENTS contains "--coverage" or "coverage", run coverage report:
which cargo-tarpaulin || cargo install cargo-tarpaulin
cargo tarpaulin --out Stdout --engine llvm
Current coverage: ~65% overall, with high coverage in core modules:
- api/client.rs: 88.9%
- db/queries.rs: 100%
- filters: 100%
- server/auth.rs: 100%
Expected Output
All 201 tests should pass (as of Jan 2026).
Test Safety
All tests are properly mocked - NO real OLX API calls are made during testing.