Testing Strategies Skill
Installation
SKILL.md
Testing Strategies Skill
Systematic testing for confidence without over-testing.
Testing Pyramid
| Level | Volume | Speed | Purpose |
|---|---|---|---|
| Unit | Many | Fast | Individual functions |
| Integration | Some | Medium | Component boundaries |
| E2E | Few | Slow | User journeys |
Anti-pattern: Inverted pyramid (too many E2E, few unit).
Unit Test Pattern (AAA)
test('should [behavior] when [condition]', () => {
// Arrange - setup
// Act - execute
// Assert - verify
});
What to Mock
| Mock | Don't Mock |
|---|---|
| External services | Your own code |
| Time/randomness | Pure functions |
| Network calls | Business logic |
Coverage Philosophy
| Range | Interpretation |
|---|---|
| 50-70% | Reasonable |
| 70-85% | Good, diminishing returns |
| 85%+ | Often wasteful |
Focus: Coverage of changed code.
Don't Test
- Third-party internals
- Framework behavior
- Private implementation
- Trivial getters/setters
TDD Cycle
Red → Green → Refactor
Synapses
See synapses.json for connections.
Related skills
More from fabioc-aloha/windowswidget
prompt engineering skill
Craft effective prompts that get the best results from language models.
3text-to-speech
Alex's voice synthesis capability for reading documents aloud
1socratic questioning skill
Help users discover answers, don't just deliver them.
1academic research skill
Patterns for thesis writing, dissertations, research papers, literature reviews, and scholarly work.
1work-life balance skill
Detect burnout signals and proactively support sustainable productivity.
1grant writing skill
Translate research vision into funded reality.
1