Agent Skills
› justrach/turboAPI
› turbo-test
turbo-test
GitHub用于运行 TurboAPI 测试套件,支持全量、指定文件或特定测试用例。涵盖 Python pytest 和 Zig 单元测试,包含已知排除项说明及快速冒烟测试脚本,确保代码变更后的回归验证。
触发场景
运行完整测试套件
执行回归测试
验证代码变更
运行特定文件测试
检查安全敏感变更
安装
npx skills add justrach/turboAPI --skill turbo-test -g -y
SKILL.md
Frontmatter
{
"name": "turbo-test",
"description": "Run TurboAPI tests. Use when running tests, checking for regressions, or verifying changes.",
"argument-hint": [
"file-or-pattern"
],
"disable-model-invocation": true
}
Run TurboAPI Tests
Steps
-
Determine scope: If
$ARGUMENTSis provided, run only matching tests. Otherwise run the full suite. -
Run tests:
# Full suite
uv run --python 3.14t python -m pytest tests/ -p no:anchorpy \
--deselect tests/test_fastapi_parity.py::TestWebSocket -v
# Specific file
uv run --python 3.14t python -m pytest tests/$ARGUMENTS -v
# Specific test
uv run --python 3.14t python -m pytest tests/ -k "$ARGUMENTS" -v
- Run Zig unit tests (if Zig files changed):
cd zig && zig build test
- Run continuous fuzzing (if security-sensitive changes):
cd zig && zig build test --fuzz
Known exclusions
- WebSocket tests (
TestWebSocket) — pre-existing failure, always deselect - anchorpy plugin — causes import error, disable with
-p no:anchorpy
Test categories
| File | What it tests |
|---|---|
test_fastapi_parity.py |
FastAPI compatibility (275+ tests) |
test_security_audit_fixes.py |
Security fixes (rate limiting, CORS, etc.) |
test_annotated_depends.py |
Annotated[Type, Depends(...)] pattern |
test_perf_callnoargs_tupleabi.py |
Handler classification + fast paths |
test_query_and_headers.py |
Query params, headers, body parsing |
Quick smoke test
uv run --python 3.14t python -c "
from turboapi import TurboAPI
app = TurboAPI()
@app.get('/')
def hello(): return {'ok': True}
from turboapi.testclient import TestClient
c = TestClient(app)
assert c.get('/').status_code == 200
print('OK')
"
版本历史
- 0ef167c 当前 2026-07-25 10:01


