Unit Testing Skills for AI Agents
Unit testing skills for AI coding agents. Jest, Vitest, pytest, and more — curated testing expertise for your AI pair programmer.
What is Unit Testing?
Unit testing verifies that individual functions, methods, and components work correctly in isolation. By testing the smallest units of code independently, developers catch bugs early in the development cycle before they compound into larger issues. Modern unit testing frameworks like Jest, Vitest, and pytest provide powerful features including mocking, spying, snapshot testing, and code coverage analysis. These skills teach your AI agent proven patterns for writing fast, deterministic unit tests with proper test isolation, assertion strategies, and mock management.
119 skills available
Jest Unit Testing
by thetestingacademy
Jest unit testing patterns with mocking, spies, snapshots, and async testing
React Testing Library
by thetestingacademy
User-centric React component testing with queries, events, and async utilities
Vitest Unit Testing
by thetestingacademy
Blazing fast Vite-native unit testing with Jest-compatible API and ESM support
Pytest Patterns
by thetestingacademy
Python testing with pytest fixtures, parametrize, markers, and plugins
MSW API Mocking
by thetestingacademy
Mock Service Worker for seamless API mocking in browser and Node.js environments
Vue Testing Utils
by thetestingacademy
Official Vue.js testing utilities for component mounting, mocking, and assertions
Code Coverage Analysis
by thetestingacademy
Track test coverage with Istanbul/nyc, generate reports, and enforce thresholds
Storybook Component Testing
by thetestingacademy
Test React, Vue, and Angular components in isolation with Storybook interactions and play functions
Angular Testing
by thetestingacademy
Angular TestBed component testing with dependency injection, async testing, and Jasmine
Snapshot Testing
by thetestingacademy
Component and API snapshot testing to detect unexpected changes across releases
TDD Red-Green-Refactor
by thetestingacademy
Test-driven development workflow patterns with red-green-refactor cycle and refactoring techniques
Test Data Generation
by thetestingacademy
Test data strategies using Faker.js, factories, builders, and database seeding
FastAPI Testing Patterns
by qaskills
FastAPI application testing with TestClient, dependency injection overrides, async testing, database testing with SQLAlchemy, and OpenAPI validation.
Mutation Testing
by thetestingacademy
Test quality verification with Stryker mutation testing for JavaScript and TypeScript
xUnit.net Testing
by thetestingacademy
Comprehensive xUnit.net testing skill for writing reliable unit, integration, and acceptance tests in C# with [Fact], [Theory], fixtures, dependency injection, and parallel execution strategies.
Vue Test Utils Testing
by qaskills
Vue.js component testing using Vue Test Utils with mount/shallow mount, event simulation, Vuex/Pinia store testing, and composition API testing.
Turborepo Monorepo Testing
by thetestingacademy
Testing patterns for Turborepo and pnpm monorepos covering workspace dependency testing, affected package detection, parallel test execution, and shared test utilities
Configuration Testing
by qaskills
Testing application configurations including environment variable validation, feature flag combinations, config file parsing, and default value verification.
Event Sourcing Testing
by qaskills
Testing event sourcing patterns including event store validation, projection testing, saga orchestration, and event versioning compatibility.
Python Testing Patterns
by thetestingacademy
Comprehensive Python testing best practices with pytest, covering unit testing, integration testing, mocking, fixtures, property-based testing, and test architecture.
Smart Contract Testing
by qaskills
Smart contract testing with Hardhat, Foundry, and Brownie including unit tests, gas optimization, reentrancy checks, and fork testing.
Vercel Edge Function Testing
by thetestingacademy
Testing patterns for Vercel Edge Functions, middleware, and serverless functions covering local testing, edge runtime simulation, and deployment verification.
AI Agent Evaluation
by thetestingacademy
Comprehensive evaluation patterns for AI agents including multi-turn conversation testing, LLM-as-judge frameworks, benchmark suites, regression detection, and systematic eval pipelines for measuring agent quality and safety.
Verification Before Completion
by obra
Enforces rigorous verification evidence before any claims of task completion, preventing false positives, untested deployments, and premature celebration with a structured gate function.
Mocha Testing Framework
by thetestingacademy
Flexible JavaScript testing framework with async support, hooks, and rich reporter ecosystem
QA Skill for Claude Code
by qaskills
The complete QA skill for Claude Code — turn Claude into an expert QA engineer that picks the right test type, writes reliable Playwright, Cypress, and pytest tests, eliminates flaky tests, enforces coverage, and wires up CI. Claude Code QA testing done right.
Custom Static Analysis Rules
by qaskills
Writing custom static analysis rules for ESLint, Semgrep, and SonarQube to enforce project-specific code quality and security standards.
Autonomous Agent Testing
by thetestingacademy
Testing patterns for autonomous AI coding agents like Devin and SWE-Agent including task verification, output validation, sandboxed execution, regression testing for agent behavior, and safety guardrails for autonomous code generation.
Vitest Migration & Config
by thetestingacademy
Teaches the agent to migrate a Jest suite to Vitest — vi.mock and the globals shim, vitest.config workspaces/projects, coverage, browser mode, and Vitest v4 breaking changes.
Cursor AI Testing Patterns
by thetestingacademy
Effective test automation patterns with Cursor AI IDE including Composer for test suite generation, Cmd+K for inline test edits, Chat for test debugging, codebase-aware test generation, and rules configuration for testing conventions.
NUnit Testing
by thetestingacademy
NUnit 3 constraint-based testing for C# covering Assert.That patterns, parameterized tests, setup/teardown, Moq mocking, test categories, and the fluent assertion model.
Property-Based Testing
by thetestingacademy
Generative testing with fast-check to discover edge cases automatically
JavaScript Testing Patterns
by thetestingacademy
Modern JavaScript testing strategies with Jest, Mocha, and testing best practices covering unit testing, integration testing, mocking, async patterns, and DOM testing.
Svelte Component Testing
by qaskills
Svelte component testing with @testing-library/svelte, vitest, component rendering, event simulation, store testing, and SvelteKit testing.
Hermetic Test Patterns
by qaskills
Building hermetic tests that are fully isolated from external dependencies using fakes, containers, and deterministic time/random sources.
WebAssembly Testing
by qaskills
Testing WebAssembly modules including compilation verification, memory management, interop testing, and performance benchmarking of WASM components.
AI Test Orchestration
by thetestingacademy
AI-powered test orchestration skill covering intelligent test selection, risk-based test prioritization, flaky test management, test impact analysis, parallel execution optimization, and predictive test failure detection using machine learning.
Jest Mocking Patterns
by thetestingacademy
Teaches the agent the right way to mock in Jest — jest.fn, mockImplementation, mockResolvedValue, jest.mock factories, spyOn with restore, and isolating modules like axios.
SDET Interview Preparation
by thetestingacademy
Comprehensive SDET interview preparation covering coding challenges, system design for testing, automation framework design, CI/CD pipeline questions, testing strategy discussions, and behavioral interview patterns for QA engineering roles.
Serverless Function Testing
by qaskills
Testing serverless functions including Lambda, Cloud Functions, and Edge Functions with local emulation, cold start testing, and timeout handling.
Test Coverage Gap Finder
by Pramod
Identify untested code paths, uncovered branches, and missing test scenarios using coverage analysis, risk mapping, and change-based coverage tracking
shadcn/ui Component Testing
by thetestingacademy
Testing skill for shadcn/ui and Radix UI component libraries covering accessible component testing, dialog and popover testing, form validation testing, data table testing, command palette testing, and theme switching verification.
Faker Test Data Generation
by qaskills
Generating realistic test data with Faker libraries for names, addresses, emails, dates, and domain-specific data with reproducible seed control.
Golden File Testing
by qaskills
Golden file testing pattern for comparing output against approved baselines with update workflows, diff tools, and version control integration.
PR Test Coverage Review
by thetestingacademy
Review pull requests for test coverage like a senior SDET, map the diff to required test classes, spot untested branches and missing regression tests, judge test quality not just presence, and write actionable review comments.
Advanced Mutation Testing
by qaskills
Advanced mutation testing using Stryker, PIT, and mutmut to measure test suite quality by introducing controlled mutations and tracking kill rates.
Nock HTTP Request Mocking
by qaskills
HTTP request mocking with Nock for Node.js testing including request intercepting, response recording, and external API simulation.
Test Data Factory
by Pramod
Build reusable test data factories with builder patterns, realistic fake data generation, relationship handling, and database seeding for consistent test environments
tRPC Testing
by thetestingacademy
End-to-end type-safe API testing with tRPC covering router testing, middleware testing, subscription testing, and client-server integration testing patterns
Negative Test Generator
by Pramod
Systematically generate negative test cases covering invalid inputs, unauthorized actions, missing required fields, exceeded limits, and malformed request payloads
MCP Server Testing
by thetestingacademy
Comprehensive testing patterns for Model Context Protocol servers including tool validation, transport testing, schema verification, and end-to-end MCP integration testing with stdio and SSE transports.
Python Unittest
by thetestingacademy
Comprehensive Python unittest skill covering TestCase patterns, assertion methods, mocking with unittest.mock, subtests, fixtures, and test organization for robust Python application testing.
Zod Schema Testing
by thetestingacademy
Comprehensive testing patterns for Zod schemas covering validation testing, transform testing, error message verification, and integration with API endpoints and forms
Flutter Testing Patterns
by qaskills
Flutter app testing with widget tests, integration tests, golden tests, Mockito, bloc testing, and Flutter Driver for end-to-end scenarios.
Boundary Value Generator
by Pramod
Generate boundary value test cases for numeric ranges, string lengths, date ranges, collection sizes, and domain-specific constraints using systematic analysis techniques
Agentic Testing Patterns
by thetestingacademy
AI-first testing methodology where autonomous agents plan, generate, execute, and maintain test suites with minimal human intervention, covering agent orchestration, feedback loops, and intelligent test prioritization.
.NET Testing Patterns
by qaskills
.NET testing with xUnit, NUnit, MSTest, FluentAssertions, Moq, integration testing with WebApplicationFactory, and Entity Framework testing.
Karma Testing
by thetestingacademy
Comprehensive Karma test runner skill for browser-based JavaScript unit testing with Jasmine, Mocha, or QUnit frameworks, real browser execution, coverage reporting, and CI/CD pipeline integration.
Kotlin Testing Patterns
by qaskills
Kotlin testing with JUnit 5, MockK, Kotest, coroutine testing, Android testing with Espresso, and Kotlin-specific assertion libraries.
RSpec Testing
by thetestingacademy
Comprehensive Ruby testing with RSpec including describe/context/it blocks, matchers, let/before hooks, mocking with doubles, shared examples, and Rails integration.
Rust Testing Patterns
by qaskills
Rust testing with built-in test framework, integration tests, doc tests, property-based testing with proptest, and cargo test configuration.
TanStack Query Testing
by thetestingacademy
Testing patterns for TanStack Query (React Query) covering query hook testing, mutation testing, cache behavior testing, and optimistic update verification.
Mutation Test Generator
by Pramod
Generate and evaluate mutation tests to assess test suite effectiveness by introducing controlled code mutations and verifying test detection rates
Test Fixture Patterns
by qaskills
Test fixture design patterns including builders, factories, object mothers, and fixture management for maintainable test data setup.
Pytest Best Practices
by thetestingacademy
Opinionated pytest patterns for AI agents - conftest fixture scoping, parametrize, markers, pyproject config, coverage, xdist parallelism, mocking, and AAA-structured test naming.
State Machine Test Generator
by Pramod
Generate comprehensive test cases from state machine models covering all states, transitions, guard conditions, and invalid transition attempts for workflow-heavy features
Error Boundary Tester
by Pramod
Validate error boundary implementations in React and other frameworks ensuring graceful degradation, proper fallback UI rendering, and error recovery flows
Test Strategy Design
by thetestingacademy
Comprehensive test strategy design methodology covering risk-based testing, test pyramid optimization, coverage planning, environment strategy, data management, and test automation ROI analysis for enterprise and startup contexts.
GitHub Copilot Testing Patterns
by thetestingacademy
Effective patterns for using GitHub Copilot to generate, refactor, and maintain test code including prompt engineering for test generation, Copilot Chat for debugging, inline suggestions for assertions, and workspace context optimization.
Cypress v14 Component Testing
by thetestingacademy
Component testing patterns with Cypress v14 including React, Vue, and Angular component mounting, custom mount commands, interaction testing, visual snapshots, and integration with Vite and Webpack bundlers.
Test Plan Generation
by thetestingacademy
Generate comprehensive test plans with coverage matrices and risk-based testing
Cargo Fuzz Testing
by qaskills
Fuzz testing for Rust applications using cargo-fuzz and libFuzzer to discover memory safety issues, panics, and undefined behavior.
JUnit 5 Testing
by thetestingacademy
Production-grade Java unit and integration testing with JUnit 5 covering assertions, parameterized tests, lifecycle hooks, Mockito mocking, nested tests, and extensions.
Pairwise Test Generator
by Pramod
Generate optimized test combinations using pairwise (all-pairs) testing algorithms to achieve maximum coverage with minimum test cases across multiple input parameters
Next.js Testing Patterns
by qaskills
Next.js application testing covering Server Components, App Router, API routes, middleware, dynamic routes, and SSR/SSG testing patterns.
Swift Testing Patterns
by qaskills
Swift testing with XCTest, Swift Testing framework, async/await testing, SwiftUI preview testing, and performance measurement.
Ruby on Rails Testing
by qaskills
Rails application testing with RSpec, FactoryBot, Capybara, system tests, request specs, model specs, and Rails-specific testing conventions.
Supabase Testing
by thetestingacademy
Testing patterns for Supabase applications covering auth flow testing, Row Level Security policy testing, realtime subscription testing, and edge function testing
Bun Test Runner
by thetestingacademy
Fast test execution with Bun's built-in test runner including snapshot testing, mocking, code coverage, lifecycle hooks, DOM testing with happy-dom, and migration from Jest and Vitest to Bun test.
MSW Mock Service Worker
by qaskills
API mocking with Mock Service Worker for browser and Node.js environments including request interception, response simulation, and network error testing.
Ruby Test::Unit
by thetestingacademy
Classic xUnit-style Ruby testing with Test::Unit covering assertions, fixtures, test case organization, mocking patterns, and lifecycle hooks for reliable Ruby application testing.
Test Reporting & Dashboards
by thetestingacademy
Building test reporting dashboards with real-time execution metrics, trend analysis, flaky test detection, coverage visualization, and integration with Allure, ReportPortal, and custom dashboards using Grafana and Prometheus.
Test Isolation Strategies
by qaskills
Test isolation techniques including database cleanup, transaction rollback, parallel test execution, and shared resource management.
Vitest Testing
by thetestingacademy
Modern JavaScript and TypeScript testing with Vitest, covering unit testing, integration testing, mocking, snapshots, browser mode, and Vite integration.
Cypress Component Testing
by qaskills
Component testing with Cypress including mount API, React/Vue/Angular component testing, stub patterns, and visual snapshot testing.
Test-Driven Development (TDD)
by thetestingacademy
Master the Test-Driven Development approach with Red-Green-Refactor cycles, writing tests before code, comprehensive coverage patterns, and quality code practices for building robust, maintainable software.
Test Suite Performance
by qaskills
Optimizing test suite execution speed with parallelization, test splitting, caching, selective test execution, and test impact analysis.
Spring Boot Testing
by qaskills
Spring Boot application testing with @SpringBootTest, MockMvc, @DataJpaTest, Testcontainers, and Spring Security testing patterns.
Approval Testing
by qaskills
Approval testing methodology using ApprovalTests library for verifying complex outputs against human-approved results with diff-based review.
Drizzle ORM Testing
by thetestingacademy
Testing patterns for Drizzle ORM covering migration testing, query builder testing, transaction testing, and database integration testing with PostgreSQL, SQLite, and MySQL.
LibFuzzer Coverage-Guided Fuzzing
by qaskills
Coverage-guided fuzz testing using libFuzzer for C/C++ applications to find memory corruption, buffer overflows, and crash-inducing inputs.
Debugging Strategies
by thetestingacademy
Advanced debugging patterns for test failures covering root cause analysis, flakiness investigation, performance debugging, and systematic troubleshooting methodologies.
CI/CD Pipeline Advanced
by thetestingacademy
Expert-level CI/CD pipeline skill for test automation. Covers GitHub Actions, Jenkins, GitLab CI, Azure DevOps, parallel execution, matrix strategies, caching, artifact management, and deployment gates.
AI Test Generation Patterns
by thetestingacademy
Systematic patterns for prompting AI coding agents to generate high-quality tests including prompt engineering for test creation, coverage-driven generation, mutation-aware testing, and review checklists for AI-generated test code.
Concurrency Testing Patterns
by qaskills
Testing concurrent code including race condition detection, deadlock prevention, thread safety verification, and parallel execution correctness.
Laravel Testing Patterns
by qaskills
Laravel PHP testing with PHPUnit, feature tests, browser tests with Dusk, database factories, mocking facades, and HTTP testing helpers.
MSTest Testing
by thetestingacademy
Microsoft's built-in .NET testing framework covering test classes, data-driven tests, assertions, lifecycle management, mocking with Moq, and integration testing for C# applications.
PHPUnit Testing
by thetestingacademy
Comprehensive PHP testing with PHPUnit covering assertions, data providers, mocking, test doubles, database testing, and HTTP testing for reliable PHP application development.
TestNG Testing
by thetestingacademy
Advanced Java testing with TestNG covering data providers, parallel execution, test groups, XML suite configuration, listeners, soft assertions, and dependency management.
Go Testing Patterns
by qaskills
Go testing with testing package, table-driven tests, subtests, benchmarks, test fixtures, httptest, and testify assertions.
Test Coverage Optimization
by qaskills
Optimizing test coverage beyond line coverage including branch coverage, mutation score, path coverage, and identifying meaningful coverage gaps.
Test Migration Framework
by thetestingacademy
Test framework migration skill covering strategies for migrating between testing frameworks including Selenium to Playwright, Jest to Vitest, Enzyme to React Testing Library, and Protractor to Cypress with automated codemods and incremental migration patterns.
DeepEval LLM Evaluation
by thetestingacademy
Test LLM applications with DeepEval, pytest-style unit tests for LLM outputs using G-Eval, answer relevancy, faithfulness, hallucination and custom metrics, with CI quality gates and dataset-driven regression runs.
Codeception Testing
by thetestingacademy
Expert-level Codeception testing skill for PHP applications. Covers acceptance, functional, and unit testing with the Actor pattern, BDD-style syntax, Page Objects, API testing, and database helpers.
Library Backward Compatibility
by qaskills
Testing library backward compatibility including public API surface verification, semver compliance, TypeScript type compatibility, and migration path validation.
Error Handling Testing Patterns
by qaskills
Testing error handling paths including exception propagation, error boundaries, retry logic, circuit breakers, and graceful degradation.
Django Testing Patterns
by qaskills
Django application testing with TestCase, fixtures, factory_boy, model testing, view testing, middleware testing, and Django REST framework testing.
Clerk Auth Testing
by thetestingacademy
Testing patterns for Clerk authentication including sign-in flow testing, protected route testing, webhook verification, middleware testing, and organization-based access control
Flask Testing Patterns
by qaskills
Flask application testing with test client, fixture patterns, SQLAlchemy model testing, blueprint testing, and Flask-specific extension testing.
Jasmine Testing
by thetestingacademy
BDD-style JavaScript testing with Jasmine covering spies, async patterns, custom matchers, clock manipulation, and comprehensive test organization for frontend and Node.js applications.
Unit Test Generation
by thetestingacademy
Generate high-signal unit tests for existing code, behavior-first case selection, boundary and error paths, mocking discipline, mutation-tested quality, and framework-idiomatic output for Vitest, Jest, and pytest.
Cursor Skill (.mdc) Authoring
by thetestingacademy
Author effective Cursor rules in .cursor/rules/*.mdc - YAML frontmatter (description, globs, alwaysApply), the four rule types, scoped QA rules, subagents, and structure that actually steers the model.
Component Isolation Testing
by qaskills
Isolating and testing individual UI components with dependency mocking, state injection, and visual snapshot verification.
TDD Red-Green-Refactor
by qaskills
Test-Driven Development mastery with red-green-refactor cycle, outside-in TDD, test-first design, and incremental development patterns.
Remix Testing
by thetestingacademy
Testing patterns for Remix applications covering loader testing, action testing, route testing, form submission testing, and nested route integration testing.
Express.js Testing Patterns
by qaskills
Express.js API testing with supertest, middleware testing, route handler testing, error handling verification, and authentication testing.
NestJS Testing Patterns
by qaskills
NestJS application testing with @nestjs/testing, dependency injection mocking, e2e testing with supertest, guard testing, and pipe validation testing.
Test Doubles Patterns
by qaskills
Comprehensive guide to test doubles including mocks, stubs, spies, fakes, and dummies with when-to-use guidelines and anti-pattern avoidance.
Test Parameterization Patterns
by qaskills
Data-driven testing with parameterized tests, test matrices, combinatorial testing, and pairwise parameter generation techniques.