ilude/claude-code-config/testing-workflow
Claude Code and agent skill by ilude/claude-code-config
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Testing workflow patterns and quality standards. Activate when working with tests, test files, test directories, code quality tools, coverage reports, or testing tasks. Includes zero-warnings policy, targeted testing during development, mocking patterns, and best practices across languages.
Install
npx vskill@latest install ilude/claude-code-config/testing-workflowSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
Testing Workflow
Testing workflow patterns and quality standards for various frameworks and languages.
CRITICAL: Zero Warnings Tolerance
Treat all warnings as errors. No exceptions.
| Status | Output | Action | |
|---|---|---|---|
| ✅ PASS | All tests passed, no warnings | Proceed | |
| ❌ FAIL | Tests passed with DeprecationWarning | Fix immediately | |
| ❌ FAIL | Any warning present | Block commit |
Pre-Commit Requirements:
- ✅ All tests pass
- ✅ Zero warnings
- ✅ No linting errors
- ✅ No type errors
- ✅ Code formatted
MUST NOT commit with:
- ❌ Failing tests
- ❌ Any warnings
- ❌ Linting errors
- ❌ Unformatted code
Testing Strategy
Test Pyramid
- Unit Tests (70%) - Fast, isolated, test individual functions/classes
- Integration Tests (20%) - Test component interactions
- End-to-End Tests (10%) - Full system tests
What to Test
✅ DO test:
- Public APIs and interfaces
- Business logic and calculations
- Edge cases (empty inputs, None values, boundaries)
- Error handling and exceptions
- Data validation
- Critical paths through the application
❌ DON'T test:
- Private implementation details
- Third-party library internals
- Trivial getters/setters
- Framework magic (unless you suspect bugs)
Development Workflow
During Development:
- Run targeted tests for fast iteration
- Fix issues immediately
Before Commit:
- Run full suite
- Fix all warnings/errors
- May run 1500+ tests
Test Organization
Directory Structure
Naming Conventions
- Test files:
test_*.pyor*_test.py - Test classes:
Test*(e.g.,TestUserService) - Test functions:
test_*(e.g.,test_create_user_success) - Fixtures: Descriptive names (e.g.,
user_service,mock_database)
CRITICAL: MUST NOT name non-test classes with "Test" prefix - framework will try to collect them as tests.
Coverage Requirements
Coverage Goals
- Minimum: 80% overall coverage
- Critical paths: 100% coverage
- New code: Should not decrease overall coverage
- Focus: Behavior over line count
What to Cover
Test these:
- Business logic, algorithms
- Edge cases, boundary conditions
- Error handling and exceptions
- Integration points, APIs
- Data validation
- Security-critical paths
Skip these:
- Trivial getters/setters
- Private implementation details
- Third-party library internals
- Simple data classes
- Framework magic (unless suspected bug)
Edge Cases to Test
- Empty inputs (empty strings, empty collections)
- None/null values
- Boundary values (zero, maximum, minimum)
- Single item cases
- Negative numbers
- Large numbers
- Mixed positive and negative values
Test Structure - Arrange-Act-Assert Pattern
All tests follow the Arrange-Act-Assert (AAA) pattern for clarity:
- Arrange - Set up test data and conditions
- Act - Execute the functionality being tested
- Assert - Verify the results
This structure makes tests:
- Easy to understand at a glance
- Simple to maintain
- Consistent across the codebase
Python Example
Fixtures
Scopes: function (default), class, module, session
Parametrized Tests
Mocking
Testing Exception Handling
Tests should verify that exceptions are raised with correct messages for invalid inputs:
Mocking External Dependencies
Tests should mock external dependencies to:
- Isolate the code being tested
- Avoid real external calls (APIs, databases, network)
- Control behavior for edge cases
- Speed up test execution
Integration Testing
Integration tests verify that multiple components work together correctly. They typically:
- Use real or test databases/services
- Test API endpoints with real infrastructure
- Verify component interactions
- Run slower than unit tests
TDD Pattern Example
Test Configuration
Test Markers and Categorization
Tests can be categorized with markers to allow selective execution:
Common marker categories:
slow- Tests that take longer to run (deselect with-m "not slow")integration- Integration tests that use external servicesunit- Unit tests (fast, isolated)e2e- End-to-end testsperformance- Performance/benchmark tests
Performance Testing
Performance tests verify that operations complete within acceptable time limits:
Development Workflow
- Write/modify code
- Run targeted tests
- Fix issues immediately
- Run full suite (
make check) - Commit when zero warnings
MUST:
- ✅ Test after every change
- ✅ Fix warnings immediately
- ✅ Add tests for new features
MUST NOT:
- ❌ Commit with failures/warnings
- ❌ Skip tests after changes
- ❌ Ignore failures as "known issues"
Essential Commands
Test Quality Checklist
- ✅ Run in isolation (no shared state)
- ✅ Deterministic (same result every time)
- ✅ Fast (mock slow operations)
- ✅ Clear names document behavior
- ✅ Test edge cases and errors
- ✅ Zero warnings in output
- ✅ >80% coverage on critical paths
Advanced Testing Patterns
| Pattern | Description | |
|---|---|---|
| Local-first | All tests MUST run locally without external dependencies | |
| Testcontainers | Use testcontainers for integration tests | |
| Flaky policy | 48-hour remediation, then quarantine or delete | |
| Thread safety | Go's -race flag, TSAN for thread safety | |
| Idempotence | Verify operations are safely re-runnable | |
| Factories > Fixtures | Prefer factories for flexible test data | |
| Soak tests | Long-running tests for memory leak detection | |
| Acceptance tests | BDD with domain language |
Out of Scope
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/testing-workflow/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 2 Apr 2026, 7 months ago.
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/ilude/claude-code-config/testing-workflow)