Testing Components
The Testing category includes specialists for test generation, test automation, quality assurance, and comprehensive testing strategies across unit, integration, E2E, and performance testing.Browse Testing Components
Explore all testing components at aitmpl.com
Quick Install
Testing Agents
Test Generator
Automated test generation with comprehensive coverageExpertise:Example Usage:
- Unit test generation
- Integration test design
- E2E test scenarios
- Test data factories
- Mocking and stubbing strategies
- Coverage analysis
- Edge case identification
- Jest, Vitest, Mocha
- React Testing Library, Vue Test Utils
- Playwright, Cypress, Puppeteer
- Supertest for API testing
- MSW (Mock Service Worker)
Test Runner
Test execution automation and orchestrationExpertise:
- Test suite execution
- Parallel test running
- Test result reporting
- Flaky test detection
- Test prioritization
Testing Commands
- Setup
- Generation
- Analysis
- Specialized
Test Infrastructure Setup
Setup Testing
Configure comprehensive testing infrastructureSets up:Usage:Creates:
- Test framework (Jest/Vitest/Mocha)
- Test runners and reporters
- Coverage tools
- Mocking libraries
- CI/CD integration
- Test utilities
jest.config.jsorvitest.config.js- Test setup files
- Example test files
- Coverage configuration
- CI/CD test workflow
E2E Setup
Set up end-to-end testing with Playwright or CypressOptions:Features:
- Playwright (recommended)
- Cypress
- TestCafe
- Puppeteer
- Browser automation setup
- Page object models
- Test fixtures
- Screenshot/video recording
- CI/CD integration
Setup Comprehensive Testing
Complete testing setup with all test types
Setup Load Testing
Configure load and performance testingTools:
- k6
- Artillery
- Apache JMeter
Setup Visual Testing
Set up visual regression testing
Testing Hooks
Test Runner Hook
Automatically run tests before commitsBehavior:Example:
- Runs before each commit (pre-commit hook)
- Executes tests for changed files
- Blocks commit if tests fail
- Shows test results and failures
- Run all tests or only affected tests
- Set timeout limits
- Configure coverage thresholds
Testing Strategies
Testing Pyramid
Test-Driven Development (TDD)
Testing Workflows
Complete Testing Setup
Feature Development with Tests
CI/CD Testing Pipeline
Best Practices
1. Comprehensive Coverage
2. Test Independence
3. Fast Feedback
4. Meaningful Tests
Real-World Examples
Example 1: API Testing
Example 2: Frontend Component Testing
Example 3: E2E Testing
Example 4: Load Testing
Testing Template
- Test generator agent
- Test runner agent
- Setup testing command
- E2E setup command
- Test coverage command
- Test runner hook (pre-commit)
- Load testing setup
- Visual testing setup
Test Types
Unit Tests
- Test individual functions/methods
- Fast execution (< 100ms)
- No external dependencies
- High code coverage
Integration Tests
- Test module interactions
- Test API endpoints
- Test database operations
- Mock external services
E2E Tests
- Test complete user workflows
- Browser automation
- Real user interactions
- Covers multiple systems
Performance Tests
- Load testing (k6, Artillery)
- Stress testing
- Spike testing
- Soak testing
Visual Tests
- Screenshot comparison
- Visual regression detection
- Cross-browser testing
- Responsive design testing