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.
99 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.
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
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.
Configuration Testing
by qaskills
Testing application configurations including environment variable validation, feature flag combinations, config file parsing, and default value verification.
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.
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.
Event Sourcing Testing
by qaskills
Testing event sourcing patterns including event store validation, projection testing, saga orchestration, and event versioning compatibility.
Mocha Testing Framework
by thetestingacademy
Flexible JavaScript testing framework with async support, hooks, and rich reporter ecosystem
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.
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.
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.
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.
WebAssembly Testing
by qaskills
Testing WebAssembly modules including compilation verification, memory management, interop testing, and performance benchmarking of WASM components.
Property-Based Testing
by thetestingacademy
Generative testing with fast-check to discover edge cases automatically
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.
Hermetic Test Patterns
by qaskills
Building hermetic tests that are fully isolated from external dependencies using fakes, containers, and deterministic time/random sources.
Svelte Component Testing
by qaskills
Svelte component testing with @testing-library/svelte, vitest, component rendering, event simulation, store testing, and SvelteKit testing.
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.
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
Golden File Testing
by qaskills
Golden file testing pattern for comparing output against approved baselines with update workflows, diff tools, and version control integration.
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.
Serverless Function Testing
by qaskills
Testing serverless functions including Lambda, Cloud Functions, and Edge Functions with local emulation, cold start testing, and timeout handling.
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.
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.
Nock HTTP Request Mocking
by qaskills
HTTP request mocking with Nock for Node.js testing including request intercepting, response recording, and external API simulation.
Negative Test Generator
by Pramod
Systematically generate negative test cases covering invalid inputs, unauthorized actions, missing required fields, exceeded limits, and malformed request payloads
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
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.
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
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
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
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.
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.
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
.NET Testing Patterns
by qaskills
.NET testing with xUnit, NUnit, MSTest, FluentAssertions, Moq, integration testing with WebApplicationFactory, and Entity Framework testing.
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
Test Fixture Patterns
by qaskills
Test fixture design patterns including builders, factories, object mothers, and fixture management for maintainable test data setup.
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
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.
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.
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.
Test Plan Generation
by thetestingacademy
Generate comprehensive test plans with coverage matrices and risk-based testing
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.
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.
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.
Ruby on Rails Testing
by qaskills
Rails application testing with RSpec, FactoryBot, Capybara, system tests, request specs, model specs, and Rails-specific testing conventions.
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.
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
Swift Testing Patterns
by qaskills
Swift testing with XCTest, Swift Testing framework, async/await testing, SwiftUI preview testing, and performance measurement.
Test Isolation Strategies
by qaskills
Test isolation techniques including database cleanup, transaction rollback, parallel test execution, and shared resource management.
Cargo Fuzz Testing
by qaskills
Fuzz testing for Rust applications using cargo-fuzz and libFuzzer to discover memory safety issues, panics, and undefined behavior.
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
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.
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.
Spring Boot Testing
by qaskills
Spring Boot application testing with @SpringBootTest, MockMvc, @DataJpaTest, Testcontainers, and Spring Security testing patterns.
Vitest Testing
by thetestingacademy
Modern JavaScript and TypeScript testing with Vitest, covering unit testing, integration testing, mocking, snapshots, browser mode, and Vite integration.
Approval Testing
by qaskills
Approval testing methodology using ApprovalTests library for verifying complex outputs against human-approved results with diff-based review.
Debugging Strategies
by thetestingacademy
Advanced debugging patterns for test failures covering root cause analysis, flakiness investigation, performance debugging, and systematic troubleshooting methodologies.
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.
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.
Test Suite Performance
by qaskills
Optimizing test suite execution speed with parallelization, test splitting, caching, selective test execution, and test impact analysis.
Cypress Component Testing
by qaskills
Component testing with Cypress including mount API, React/Vue/Angular component testing, stub patterns, and visual snapshot testing.
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.
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.
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.
Go Testing Patterns
by qaskills
Go testing with testing package, table-driven tests, subtests, benchmarks, test fixtures, httptest, and testify assertions.
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.
Error Handling Testing Patterns
by qaskills
Testing error handling paths including exception propagation, error boundaries, retry logic, circuit breakers, and graceful degradation.
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.
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
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.
Library Backward Compatibility
by qaskills
Testing library backward compatibility including public API surface verification, semver compliance, TypeScript type compatibility, and migration path validation.
Django Testing Patterns
by qaskills
Django application testing with TestCase, fixtures, factory_boy, model testing, view testing, middleware testing, and Django REST framework testing.
Flask Testing Patterns
by qaskills
Flask application testing with test client, fixture patterns, SQLAlchemy model testing, blueprint testing, and Flask-specific extension testing.
Component Isolation Testing
by qaskills
Isolating and testing individual UI components with dependency mocking, state injection, and visual snapshot verification.
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.
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.
Test Parameterization Patterns
by qaskills
Data-driven testing with parameterized tests, test matrices, combinatorial testing, and pairwise parameter generation techniques.
Remix Testing
by thetestingacademy
Testing patterns for Remix applications covering loader testing, action testing, route testing, form submission testing, and nested route integration 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.
Express.js Testing Patterns
by qaskills
Express.js API testing with supertest, middleware testing, route handler testing, error handling verification, and authentication 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.