unit (default): Quick tests, no model downloads. CI-safe.
e2e: Full pipeline tests with real models, via scripts/test_e2e_isolated.sh
— one process per E2E suite. Never use plain swift test for the full E2E
suite: models accumulate in a single xctest process and can exhaust system
memory (observed: machine reboot).
all: Both unit and E2E (unit phase once, then isolated E2E suites).
Any other argument: passed as --filter to swift test.
arg="${ARGUMENTS:-unit}"
case "$arg" in
unit) swift test --skip E2E 2>&1 | tail -20 ;;
e2e) swift build --build-tests --disable-sandbox && ./scripts/build_mlx_metallib.sh debug && E2E_SKIP_UNIT=1 scripts/test_e2e_isolated.sh 2>&1 | tail -40 ;;
all) swift build --build-tests --disable-sandbox && ./scripts/build_mlx_metallib.sh debug && scripts/test_e2e_isolated.sh 2>&1 | tail -40 ;;
*) swift test --filter "$arg" 2>&1 | tail -20 ;;
esac
E2E test classes MUST be prefixed with E2E. Unit test classes must NOT contain E2E.
1---2name: test3description: Test4---56# Test78Run unit and/or E2E tests.910- `unit` (default): Quick tests, no model downloads. CI-safe.11- `e2e`: Full pipeline tests with real models, via `scripts/test_e2e_isolated.sh`12 — one process per E2E suite. Never use plain `swift test` for the full E2E13 suite: models accumulate in a single xctest process and can exhaust system14 memory (observed: machine reboot).15- `all`: Both unit and E2E (unit phase once, then isolated E2E suites).16- Any other argument: passed as `--filter` to swift test.1718```bash19arg="${ARGUMENTS:-unit}"20case "$arg" in21 unit) swift test --skip E2E 2>&1 | tail -20 ;;22 e2e) swift build --build-tests --disable-sandbox && ./scripts/build_mlx_metallib.sh debug && E2E_SKIP_UNIT=1 scripts/test_e2e_isolated.sh 2>&1 | tail -40 ;;23 all) swift build --build-tests --disable-sandbox && ./scripts/build_mlx_metallib.sh debug && scripts/test_e2e_isolated.sh 2>&1 | tail -40 ;;24 *) swift test --filter "$arg" 2>&1 | tail -20 ;;25esac26```2728E2E test classes MUST be prefixed with `E2E`. Unit test classes must NOT contain `E2E`.
Run npx skillmds@latest add soniqo/test in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Test It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
soniqo (@soniqo) published this skill. Their other Agent Skills are listed on their SkillMD profile.