david-li0406/meta-skill-evloving/testing-requirements-1
Claude Code and agent skill by david-li0406/meta-skill-evloving
Trust tier 3
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when writing tests - test structure, mocking patterns, pre-commit checks
Install
npx vskill@latest install david-li0406/meta-skill-evloving/testing-requirements-1Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as david-li0406/meta-skill-evloving/testing-requirements-1.
Testing Requirements
Use this skill when writing tests for features or fixing bugs.
Checklist
Test Structure
- [ ] Mirror
app/structure intests/directory - [ ] Place test files in matching directory (e.g.,
app/features/generators/service.py→tests/app/features/generators/test_service.py) - [ ] Use
test_prefix for all test files and test functions
Testing Patterns
- [ ] Use
pytest.mark.asynciodecorator for async tests - [ ] Mock external dependencies (database, GPU, network, file I/O)
- [ ] Use fixtures for common test setup
- [ ] Avoid test interdependencies (each test should be independent)
Coverage Requirements
Cover all three paths:
- [ ] Happy path - Normal execution with valid inputs
- [ ] Error cases - Known failure conditions (invalid input, missing resources)
- [ ] Edge cases - Boundary conditions, empty values, None handling
Example Test Structure
Pre-Commit Checks
Before marking work complete, run all checks:
- [ ] Type check modified files:
uv run ty check app/path/to/modified.py tests/path/to/test.py - [ ] Lint and fix:
uv run ruff check --fix app/ tests/ - [ ] Format code:
uv run ruff format app/ tests/ - [ ] Run tests:
uv run pytest -q - [ ] Verify all checks pass (pre-commit hook will block commits if they fail)
Quality Gates
- [ ] All tests pass
- [ ] No type errors (ty clean)
- [ ] No lint errors (ruff clean)
- [ ] Code is formatted (ruff format applied)
- [ ] Test coverage includes happy path, error cases, and edge cases
Reference
- Testing framework: pytest + pytest-asyncio
- Pre-commit hook: Runs ruff format, ruff check, ty check on staged files
- Coverage goal: 80%+ (SonarQube quality gate)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskill-flow/data/skills-refined-36k/skillsmp/testing-requirements-1/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/david-li0406/meta-skill-evloving/testing-requirements-1)