Test

From soniqo/speech-swift · View interactive version

Test is an AI agent skill from the GitHub repository soniqo/speech-swift. Run tests. Use after code changes to validate. Arguments: unit (default, no GPU), e2e (with models), filter name, or all.

How to use this skill

Skill file

Test

Run unit and/or E2E tests.

— 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).

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.