一键导入
test
Run tests. Use after code changes to validate. Arguments: unit (default, no GPU), e2e (with models), filter name, or all.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run tests. Use after code changes to validate. Arguments: unit (default, no GPU), e2e (with models), filter name, or all.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review a pull request for conceptual fit, architecture impact, adversarial failure modes, security risk, docs impact, regression risk, test coverage, and merge readiness. Use when asked to review a PR, check whether a PR is safe to merge, decide if more tests are needed, perform adversarial or security review, or summarize PR risk.
Run performance + quality benchmarks. ASR reports WER, RTF, peak RSS, and throughput across engines/variants. Arguments include asr, tts, vad, diarize, asr-quick.
Build the speech-swift package (release or debug). Use when preparing for testing, benchmarking, or running demos.
| name | test |
| description | Run tests. Use after code changes to validate. Arguments: unit (default, no GPU), e2e (with models), filter name, or all. |
Run unit and/or E2E tests.
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).--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.