awesome-claude-notes / rules
loulanyue/awesome-claude-notes/.cursor/rules/common-testing.md
Testing requirements: 80% coverage, TDD workflow, test types
Cursor rule272 starsChanged 6 months ago
What's in it
- Testing Requirements
- Minimum Test Coverage: 80%
- Test-Driven Development
- Troubleshooting Test Failures
- Agent Support
--- description: "Testing requirements: 80% coverage, TDD workflow, test types" alwaysApply: true --- # Testing Requirements ## Minimum Test Coverage: 80% Test Types (ALL required): 1. **Unit Tests** - Individual functions, utilities, components 2. **Integration Tests** - API endpoints, database operations 3. **E2E Tests** - Critical user flows (framework chosen per language) ## Test-Driven Development MANDATORY workflow: 1. Write test first (RED) 2. Run test - it should FAIL 3. Write minimal implementation (GREEN) 4. Run test - it should PASS 5. Refactor (IMPROVE) 6. Verify coverage (80%+) ## Troubleshooting Test Failures 1. Use **tdd-guide** agent 2. Check test isolation 3. Verify mocks are correct 4. Fix implementation, not tests (unless tests are wrong) ## Agent Support - **tdd-guide** - Use PROACTIVELY for new features, enforces write-tests-first
More agent context in loulanyue/awesome-claude-notes
178 other files this repository gives its agents, the first 60 shown.
AGENTS.md
CLAUDE.md
Cursor rule
- .cursor/rules/common-agents.md
- .cursor/rules/common-coding-style.md
- .cursor/rules/common-development-workflow.md
- .cursor/rules/common-git-workflow.md
- .cursor/rules/common-hooks.md
- .cursor/rules/common-patterns.md
- .cursor/rules/common-performance.md
- .cursor/rules/common-security.md
- .cursor/rules/golang-coding-style.md
- .cursor/rules/golang-hooks.md
- .cursor/rules/golang-patterns.md
- .cursor/rules/golang-security.md
- .cursor/rules/golang-testing.md
- .cursor/rules/kotlin-coding-style.md
- .cursor/rules/kotlin-hooks.md
- .cursor/rules/kotlin-patterns.md
- .cursor/rules/kotlin-security.md
- .cursor/rules/kotlin-testing.md
- .cursor/rules/php-coding-style.md
- .cursor/rules/php-hooks.md
- .cursor/rules/php-patterns.md
- .cursor/rules/php-security.md
- .cursor/rules/php-testing.md
- .cursor/rules/python-coding-style.md
- .cursor/rules/python-hooks.md
- .cursor/rules/python-patterns.md
- .cursor/rules/python-security.md
- .cursor/rules/python-testing.md
- .cursor/rules/swift-coding-style.md
- .cursor/rules/swift-hooks.md
- .cursor/rules/swift-patterns.md
- .cursor/rules/swift-security.md
- .cursor/rules/swift-testing.md
- .cursor/rules/typescript-coding-style.md
- .cursor/rules/typescript-hooks.md
- .cursor/rules/typescript-patterns.md
- .cursor/rules/typescript-security.md
- .cursor/rules/typescript-testing.md
llms.txt
Skill
- article-writing.cursor/skills/article-writing/SKILL.md
- bun-runtime.cursor/skills/bun-runtime/SKILL.md
- content-engine.cursor/skills/content-engine/SKILL.md
- documentation-lookup.cursor/skills/documentation-lookup/SKILL.md
- frontend-slides.cursor/skills/frontend-slides/SKILL.md
- investor-materials.cursor/skills/investor-materials/SKILL.md
- investor-outreach.cursor/skills/investor-outreach/SKILL.md
- market-research.cursor/skills/market-research/SKILL.md
- mcp-server-patterns.cursor/skills/mcp-server-patterns/SKILL.md
- nextjs-turbopack.cursor/skills/nextjs-turbopack/SKILL.md
- agent-evalskills/agent-eval/SKILL.md
- agent-harness-constructionskills/agent-harness-construction/SKILL.md
- agentic-engineeringskills/agentic-engineering/SKILL.md
- ai-first-engineeringskills/ai-first-engineering/SKILL.md
- ai-regression-testingskills/ai-regression-testing/SKILL.md
- android-clean-architectureskills/android-clean-architecture/SKILL.md
- api-designskills/api-design/SKILL.md
Also found in 19 other repositories
The same file, byte for byte, in the weekly crawl of public GitHub; the 10 with the most stars.
- affaan-m/ECC246k
- tpavanipradeep/everything-claude-code104
- mturac/everything-openai-codex89
- mit-network/everything-claude-code76
- Fmarzochi/EGC52
- ysyecust/everything-claude-code44
- j7-dev/everything-github-copilot19
- Infopibe/everything-claude-code8
- yapota2018/affaan-m-everything-claude-code4
- ArogyaReddy/https-github.com-affaan-m-everything-claude-code12
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
No reports yet. Be the first to say whether it worked.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool public_context_discussion, action report. How to connect one.

