1.8 KiB
Test Generator Templates
Copy-paste templates for common testing scenarios - customize for your needs.
Files in This Directory
unit-test-template.md
Ready-to-use unit test templates for TypeScript (Vitest) and Python (pytest) with AAA pattern, fixtures, and common test cases.
When to use: Creating new unit test files Languages: TypeScript, Python
integration-test-template.md
Templates for integration tests covering API endpoints, database interactions, and multi-component workflows.
When to use: Testing interactions between components or services Languages: TypeScript, Python
test-fixtures-template.md
Templates for test fixtures, factories, and test data builders with realistic examples.
When to use: Setting up test data and shared fixtures Languages: TypeScript, Python
test-plan-template.md
Comprehensive test plan template for feature development with coverage goals, risk assessment, and test strategy.
When to use: Planning test coverage for new features or improvements Format: Markdown checklist
Usage
- Copy template to your test directory
- Replace placeholders (e.g.,
ComponentName,YourService) - Customize test cases for your specific needs
- Add tests as you discover edge cases
Template Conventions
Placeholders:
ComponentName- Replace with your component namefunctionName- Replace with your function nameYourService- Replace with your service class name...- Add more test cases
Comments:
// TODO:- Action items to complete// CUSTOMIZE:- Areas to customize for your use case
Return to agent documentation