Agent Skillsjustrach/turboAPI › turbo-test

turbo-test

GitHub

用于运行 TurboAPI 测试套件,支持全量、指定文件或特定测试用例。涵盖 Python pytest 和 Zig 单元测试,包含已知排除项说明及快速冒烟测试脚本,确保代码变更后的回归验证。

.claude/skills/turbo-test/SKILL.md justrach/turboAPI

触发场景

运行完整测试套件 执行回归测试 验证代码变更 运行特定文件测试 检查安全敏感变更

安装

npx skills add justrach/turboAPI --skill turbo-test -g -y
更多选项

非标准路径

npx skills add https://github.com/justrach/turboAPI/tree/main/.claude/skills/turbo-test -g -y

不安装直接使用

npx skills use justrach/turboAPI@turbo-test

指定 Agent (Claude Code)

npx skills add justrach/turboAPI --skill turbo-test -a claude-code -g -y

安装 repo 全部 skill

npx skills add justrach/turboAPI --all -g -y

预览 repo 内 skill

npx skills add justrach/turboAPI --list

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

  1. Determine scope: If $ARGUMENTS is provided, run only matching tests. Otherwise run the full suite.

  2. 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
  1. Run Zig unit tests (if Zig files changed):
cd zig && zig build test
  1. 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

同 Skill 集合

.claude/skills/turbo-benchmark/SKILL.md
.claude/skills/turbo-build/SKILL.md
.claude/skills/turbo-db-route/SKILL.md
.claude/skills/turbo-route/SKILL.md
.claude/skills/turbopg/SKILL.md

元信息

文件数
0
版本
1c75a09
Hash
01440677
收录时间
2026-07-25 10:01

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-02 00:50
浙ICP备14020137号-1 $访客地图$