Skip to main content

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:
  • Unit test generation
  • Integration test design
  • E2E test scenarios
  • Test data factories
  • Mocking and stubbing strategies
  • Coverage analysis
  • Edge case identification
Technologies:
  • Jest, Vitest, Mocha
  • React Testing Library, Vue Test Utils
  • Playwright, Cypress, Puppeteer
  • Supertest for API testing
  • MSW (Mock Service Worker)
Example Usage:

Test Runner

Test execution automation and orchestrationExpertise:
  • Test suite execution
  • Parallel test running
  • Test result reporting
  • Flaky test detection
  • Test prioritization

Testing Commands

Test Infrastructure Setup

Setup Testing

Configure comprehensive testing infrastructureSets up:
  • Test framework (Jest/Vitest/Mocha)
  • Test runners and reporters
  • Coverage tools
  • Mocking libraries
  • CI/CD integration
  • Test utilities
Usage:
Creates:
  • jest.config.js or vitest.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:
  • Playwright (recommended)
  • Cypress
  • TestCafe
  • Puppeteer
Features:
  • 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:
  • Runs before each commit (pre-commit hook)
  • Executes tests for changed files
  • Blocks commit if tests fail
  • Shows test results and failures
Configuration:
  • Run all tests or only affected tests
  • Set timeout limits
  • Configure coverage thresholds
Example:

Testing Strategies

Testing Pyramid

Unit Tests (70%): Fast, isolated tests for individual functions/methods Integration Tests (20%): Test module interactions and API endpoints E2E Tests (10%): Test complete user workflows through the UI

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

Includes:
  • 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

Next Steps