testing-patterns
Common testing patterns and practices. This skill is designed to be included in composite skills via the 'includes' feature.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
Testing Patterns
Foundational testing practices applicable across languages and frameworks.
Rules
- Write tests for happy paths and error cases
- Test edge cases and boundary conditions
- Each test should test one thing
- Tests should be deterministic and repeatable
- Use descriptive test names that explain the scenario
Checklist
- Happy path is covered
- Error cases are tested
- Edge cases are identified and tested
- Tests are independent and can run in any order
- Test data is isolated per test
- No flaky tests in the suite
Pitfalls
- Testing implementation details instead of behavior
- Not testing error paths
- Shared mutable state between tests
- Tests that depend on execution order
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-01-20
- Mise à jour de l’index
- 2026-01-28
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!