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