用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/michaelbleterman/ai-scrum --skill test-execution命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | Test Execution |
| description | Strategies for running tests including inline, pytest, and Playwright |
This skill provides test execution strategies for different project types.
Best for simple validation without import complexity.
# Create test in SAME directory as code
write_file("project_tracking/test_inline.py", """
from dummy_math import add # No import issues - same directory!
result = add(2, 3)
expected = 5
if result == expected:
print(f"✅ PASS: add(2, 3) = {result}")
exit(0)
else:
print(f"❌ FAIL: add(2, 3) = {result}, expected {expected}")
exit(1)
""")
# Run from correct directory
run_command("cd project_tracking && python test_inline.py")
# Run specific test file
pytest tests/test_feature.py -v
# Run with pattern matching
pytest -k "test_user" -v
# Run with coverage
pytest --cov=src tests/
CRITICAL: Always use headless mode for autonomous execution.
// playwright.config.ts
export default defineConfig({
use: {
headless: true, // MANDATORY - never false
baseURL: 'http://localhost:5173',
},
});
# Run tests
npx playwright test
# NEVER use these flags:
# --headed (opens browser)
# --debug (opens inspector)
Max 3 retries for same error:
When test fails, categorize:
| Category | Action |
|---|---|
| Environment Issue | Mark BLOCKED, document |
| Test Code Issue | Fix test, re-run |
| Application Defect | Create DEFECT task |
Always include test output in completion:
VERIFIED:
- pytest tests/test_auth.py: 5 passed, 0 failed
- Coverage: 87%