name: test-all
description: Run the FULL Momentum CMS test suite — every single suite, no skips. Triggers on "test all", "test everything", "run all tests", "run the test all script", "test-all script", "run the full suite", "run every test", "test the whole thing", "make sure everything passes", "run test:all", or ANY variation asking to run all/every/full tests. Also triggers on typos like "test al", "tets all", "tes all". NEVER skip suites unless the user EXPLICITLY names suites to skip.
argument-hint: [--suite ] [--skip ]
Full Test Suite Runner
Runs every test suite in the Momentum CMS monorepo. Do NOT skip any suite unless the user explicitly requests it.
CRITICAL: Trigger Recognition
This skill MUST activate when the user says ANY of these (including typos and variations):
- "test all", "test everything", "run all tests", "run every test"
- "test-all script", "run the test all script", "run test:all"
- "run the full suite", "test the whole thing", "make sure everything passes"
- "run the full test suite", "execute all tests", "test it all"
- Typos: "test al", "tets all", "tes all", "test alll"
When triggered, run npm run test:all with ZERO --skip flags. Period.
Command
npm run test:all
This executes npx tsx scripts/test-all.ts which runs all suites sequentially.
Available Suites
| Name | Label | What It Runs |
|---|---|---|
unit-tests |
Unit Tests | nx run-many -t test --parallel=3 (all unit tests) |
angular-e2e |
Angular E2E | nx e2e example-angular-e2e |
analog-e2e |
Analog E2E | nx e2e example-analog-e2e |
nestjs-e2e |
NestJS E2E | nx e2e example-nestjs-e2e |
swappable-admin-e2e |
Swappable Admin E2E | nx e2e test-swappable-admin-e2e |
migration-tests |
Migration Tests | nx test migrations |
cli-scaffold |
CLI Scaffold Test | npx tsx scripts/test-all.ts --database sqlite |
Usage
# Run EVERYTHING (default — this is what "test all" means)
npm run test:all
# Run only one suite
npm run test:all -- --suite angular-e2e
# Skip specific suites (only if user explicitly asks)
npm run test:all -- --skip cli-scaffold --skip analog-e2e
Rules
- When the user says "test all", "run test all", "test-all script", or similar — run
npm run test:allwith NO --skip flags. Every suite must run. - Logs go to
/tmp/test-all/. If a suite fails, read the log file to diagnose. - The script exits with code 1 if any suite fails.
- Timeout should be generous (10 minutes) since E2E suites take time.
- If a suite fails, report which suite failed and show the last ~30 lines of its log.
Arguments
$ARGUMENTS— passed directly to the script (e.g.,--suite unit-tests,--skip cli-scaffold). If empty, runs everything.
Execution
npm run test:all $ARGUMENTS