| name | run-full-test-suite |
| description | Executes comprehensive test suite across unit, integration, E2E, database, protocols, and intelligence algorithms |
| user-invocable | true |
Run Full Test Suite Skill
Purpose
Executes comprehensive test suite across all categories: unit, integration, E2E, database, protocols, and intelligence algorithms.
CLAUDE.md Compliance
- ✅ Runs all deterministic tests
- ✅ Uses synthetic data (no external dependencies)
- ✅ Tests both success and error paths
- ✅ Validates code quality
Usage
Run this skill:
- Before committing code
- Before pull requests
- Before releases
- After major refactoring
- Daily CI validation
Prerequisites
- Cargo and Rust toolchain
- Test dependencies installed
Commands
Full Test Suite
cargo test --all-features
Full CI Suite
./scripts/ci/lint-and-test.sh
Specific Test Categories
Unit Tests
cargo test --lib -- --quiet
Integration Tests
cargo test --test '*' -- --quiet
cargo test --test mcp_multitenant_complete_test -- --nocapture
Doc Tests
cargo test --doc -- --quiet
Intelligence Tests
cargo test --test intelligence_tools_basic_test -- --nocapture
cargo test --test intelligence_tools_advanced_test -- --nocapture
Protocol Tests
cargo test protocol -- --quiet
cargo test oauth -- --quiet
cargo test auth -- --quiet
Database Tests
cargo test database --lib -- --quiet
cargo test --test database_plugins_comprehensive_test --features sqlite
./scripts/testing/test-postgres.sh
Performance Testing
cargo bench --bench '*' || echo "No benchmarks configured"
Parallel vs Sequential
cargo test --all-features
cargo test --all-features -- --test-threads=1
Test Output Modes
Quiet Mode (Summary Only)
cargo test --all-features --quiet
Verbose Mode (Show Output)
cargo test --all-features -- --nocapture
Show Only Failures
cargo test --all-features 2>&1 | grep -A 10 "FAILED"
Test Filtering
By Name
cargo test test_vdot_calculation
cargo test multitenant
cargo test intelligence::algorithms
By Feature Flag
cargo test --features sqlite
cargo test --features postgresql
cargo test --features testing
Exclude Tests
cargo test --all-features -- --skip test_expensive_operation
cargo test --lib
Success Criteria
- ✅ All unit tests pass (>100 tests)
- ✅ All integration tests pass (>50 tests)
- ✅ All doc tests pass
- ✅ No flaky tests
- ✅ No ignored tests without explanation
- ✅ Test coverage > 80%
- ✅ No test failures in CI
- ✅ All tests complete in < 5 minutes
Quick Test Commands Cheat Sheet
cargo test --lib --quiet
cargo test --all-features
cargo test test_name -- --nocapture
cargo test --test mcp_multitenant_complete_test
cargo test --test intelligence_tools_basic_test
cargo test database
cargo test protocol
cargo test auth oauth
./scripts/ci/lint-and-test.sh
Related Files
scripts/ci/lint-and-test.sh - Full CI validation suite
tests/ - Integration tests directory
tests/common.rs - Shared test utilities
Related Skills
test-multitenant-isolation - Multi-tenant testing
test-intelligence-algorithms - Algorithm validation
test-mcp-compliance - Protocol compliance