Skip to main content

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.

npx qaskills add jest-unit

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

91

Jest unit testing patterns with mocking, spies, snapshots, and async testing

unit
jest
6491/100
Featured

React Testing Library

by thetestingacademy

91

User-centric React component testing with queries, events, and async utilities

unit
integration
jest
5391/100
Featured

Vitest Unit Testing

by thetestingacademy

89

Blazing fast Vite-native unit testing with Jest-compatible API and ESM support

unit
jest
4289/100
Featured

Pytest Patterns

by thetestingacademy

88

Python testing with pytest fixtures, parametrize, markers, and plugins

unit
integration
pytest
4188/100

MSW API Mocking

by thetestingacademy

88

Mock Service Worker for seamless API mocking in browser and Node.js environments

unit
integration
jest
3388/100

Vue Testing Utils

by thetestingacademy

87

Official Vue.js testing utilities for component mounting, mocking, and assertions

unit
jest
3187/100

Code Coverage Analysis

by thetestingacademy

85

Track test coverage with Istanbul/nyc, generate reports, and enforce thresholds

unit
code-quality
jest
3085/100

Storybook Component Testing

by thetestingacademy

87

Test React, Vue, and Angular components in isolation with Storybook interactions and play functions

unit
visual
jest
2987/100

Angular Testing

by thetestingacademy

86

Angular TestBed component testing with dependency injection, async testing, and Jasmine

unit
integration
jest
2486/100

Snapshot Testing

by thetestingacademy

82

Component and API snapshot testing to detect unexpected changes across releases

unit
visual
jest
2082/100

TDD Red-Green-Refactor

by thetestingacademy

83

Test-driven development workflow patterns with red-green-refactor cycle and refactoring techniques

tdd
unit
jest
1983/100

Test Data Generation

by thetestingacademy

83

Test data strategies using Faker.js, factories, builders, and database seeding

unit
integration
e2e
1883/100

FastAPI Testing Patterns

by qaskills

88

FastAPI application testing with TestClient, dependency injection overrides, async testing, database testing with SQLAlchemy, and OpenAPI validation.

unit
integration
api
fastapi
pytest
1788/100

Turborepo Monorepo Testing

by thetestingacademy

83

Testing patterns for Turborepo and pnpm monorepos covering workspace dependency testing, affected package detection, parallel test execution, and shared test utilities

unit
integration
e2e
vitest
playwright
1783/100

Mutation Testing

by thetestingacademy

86

Test quality verification with Stryker mutation testing for JavaScript and TypeScript

unit
code-quality
jest
1786/100

xUnit.net Testing

by thetestingacademy

80

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.

unit
integration
acceptance
xunit
1780/100

Configuration Testing

by qaskills

86

Testing application configurations including environment variable validation, feature flag combinations, config file parsing, and default value verification.

integration
unit
1786/100

Vue Test Utils Testing

by qaskills

83

Vue.js component testing using Vue Test Utils with mount/shallow mount, event simulation, Vuex/Pinia store testing, and composition API testing.

unit
integration
vue
1783/100

Python Testing Patterns

by thetestingacademy

87

Comprehensive Python testing best practices with pytest, covering unit testing, integration testing, mocking, fixtures, property-based testing, and test architecture.

unit
integration
pytest
1687/100

Smart Contract Testing

by qaskills

89

Smart contract testing with Hardhat, Foundry, and Brownie including unit tests, gas optimization, reentrancy checks, and fork testing.

unit
security
hardhat
foundry
1689/100

Event Sourcing Testing

by qaskills

85

Testing event sourcing patterns including event store validation, projection testing, saga orchestration, and event versioning compatibility.

unit
integration
1685/100

Mocha Testing Framework

by thetestingacademy

81

Flexible JavaScript testing framework with async support, hooks, and rich reporter ecosystem

unit
integration
jest
1581/100

Verification Before Completion

by obra

80

Enforces rigorous verification evidence before any claims of task completion, preventing false positives, untested deployments, and premature celebration with a structured gate function.

e2e
integration
unit
1580/100

Vercel Edge Function Testing

by thetestingacademy

83

Testing patterns for Vercel Edge Functions, middleware, and serverless functions covering local testing, edge runtime simulation, and deployment verification.

unit
integration
e2e
vitest
playwright
1583/100

Custom Static Analysis Rules

by qaskills

84

Writing custom static analysis rules for ESLint, Semgrep, and SonarQube to enforce project-specific code quality and security standards.

security
unit
1484/100

NUnit Testing

by thetestingacademy

82

NUnit 3 constraint-based testing for C# covering Assert.That patterns, parameterized tests, setup/teardown, Moq mocking, test categories, and the fluent assertion model.

unit
integration
nunit
1482/100

WebAssembly Testing

by qaskills

87

Testing WebAssembly modules including compilation verification, memory management, interop testing, and performance benchmarking of WASM components.

unit
performance
1387/100

Property-Based Testing

by thetestingacademy

84

Generative testing with fast-check to discover edge cases automatically

unit
tdd
jest
1384/100

AI Test Orchestration

by thetestingacademy

81

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.

integration
e2e
unit
playwright
jest
1381/100

Hermetic Test Patterns

by qaskills

89

Building hermetic tests that are fully isolated from external dependencies using fakes, containers, and deterministic time/random sources.

unit
integration
1389/100

Svelte Component Testing

by qaskills

85

Svelte component testing with @testing-library/svelte, vitest, component rendering, event simulation, store testing, and SvelteKit testing.

unit
integration
svelte
vitest
1385/100

JavaScript Testing Patterns

by thetestingacademy

89

Modern JavaScript testing strategies with Jest, Mocha, and testing best practices covering unit testing, integration testing, mocking, async patterns, and DOM testing.

unit
integration
jest
1389/100

Test Coverage Gap Finder

by Pramod

87

Identify untested code paths, uncovered branches, and missing test scenarios using coverage analysis, risk mapping, and change-based coverage tracking

code-quality
unit
jest
vitest
1287/100

Golden File Testing

by qaskills

80

Golden file testing pattern for comparing output against approved baselines with update workflows, diff tools, and version control integration.

unit
integration
1280/100

shadcn/ui Component Testing

by thetestingacademy

82

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.

unit
integration
e2e
vitest
playwright
1282/100

Serverless Function Testing

by qaskills

80

Testing serverless functions including Lambda, Cloud Functions, and Edge Functions with local emulation, cold start testing, and timeout handling.

unit
integration
1280/100

Advanced Mutation Testing

by qaskills

81

Advanced mutation testing using Stryker, PIT, and mutmut to measure test suite quality by introducing controlled mutations and tracking kill rates.

unit
stryker
1281/100

Faker Test Data Generation

by qaskills

85

Generating realistic test data with Faker libraries for names, addresses, emails, dates, and domain-specific data with reproducible seed control.

unit
integration
faker
1285/100

Nock HTTP Request Mocking

by qaskills

85

HTTP request mocking with Nock for Node.js testing including request intercepting, response recording, and external API simulation.

unit
integration
nock
1185/100

Negative Test Generator

by Pramod

87

Systematically generate negative test cases covering invalid inputs, unauthorized actions, missing required fields, exceeded limits, and malformed request payloads

unit
integration
security
jest
vitest
1187/100

Test Data Factory

by Pramod

87

Build reusable test data factories with builder patterns, realistic fake data generation, relationship handling, and database seeding for consistent test environments

unit
integration
e2e
jest
vitest
1187/100

Python Unittest

by thetestingacademy

87

Comprehensive Python unittest skill covering TestCase patterns, assertion methods, mocking with unittest.mock, subtests, fixtures, and test organization for robust Python application testing.

unit
integration
unittest
1187/100

tRPC Testing

by thetestingacademy

89

End-to-end type-safe API testing with tRPC covering router testing, middleware testing, subscription testing, and client-server integration testing patterns

unit
integration
api
vitest
jest
1189/100

Zod Schema Testing

by thetestingacademy

80

Comprehensive testing patterns for Zod schemas covering validation testing, transform testing, error message verification, and integration with API endpoints and forms

unit
integration
vitest
jest
1080/100

Boundary Value Generator

by Pramod

86

Generate boundary value test cases for numeric ranges, string lengths, date ranges, collection sizes, and domain-specific constraints using systematic analysis techniques

unit
integration
jest
vitest
1086/100

Flutter Testing Patterns

by qaskills

82

Flutter app testing with widget tests, integration tests, golden tests, Mockito, bloc testing, and Flutter Driver for end-to-end scenarios.

unit
integration
e2e
flutter
1082/100

RSpec Testing

by thetestingacademy

86

Comprehensive Ruby testing with RSpec including describe/context/it blocks, matchers, let/before hooks, mocking with doubles, shared examples, and Rails integration.

unit
integration
acceptance
rspec
986/100

Mutation Test Generator

by Pramod

86

Generate and evaluate mutation tests to assess test suite effectiveness by introducing controlled code mutations and verifying test detection rates

unit
code-quality
jest
vitest
986/100

.NET Testing Patterns

by qaskills

89

.NET testing with xUnit, NUnit, MSTest, FluentAssertions, Moq, integration testing with WebApplicationFactory, and Entity Framework testing.

unit
integration
xunit
nunit
989/100

State Machine Test Generator

by Pramod

86

Generate comprehensive test cases from state machine models covering all states, transitions, guard conditions, and invalid transition attempts for workflow-heavy features

unit
integration
jest
vitest
986/100

Test Fixture Patterns

by qaskills

86

Test fixture design patterns including builders, factories, object mothers, and fixture management for maintainable test data setup.

unit
integration
986/100

Error Boundary Tester

by Pramod

86

Validate error boundary implementations in React and other frameworks ensuring graceful degradation, proper fallback UI rendering, and error recovery flows

e2e
unit
playwright
jest
986/100

Karma Testing

by thetestingacademy

82

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.

unit
integration
karma
982/100

Kotlin Testing Patterns

by qaskills

85

Kotlin testing with JUnit 5, MockK, Kotest, coroutine testing, Android testing with Espresso, and Kotlin-specific assertion libraries.

unit
integration
junit
kotest
985/100

TanStack Query Testing

by thetestingacademy

86

Testing patterns for TanStack Query (React Query) covering query hook testing, mutation testing, cache behavior testing, and optimistic update verification.

unit
integration
vitest
jest
986/100

Rust Testing Patterns

by qaskills

87

Rust testing with built-in test framework, integration tests, doc tests, property-based testing with proptest, and cargo test configuration.

unit
integration
987/100

Test Plan Generation

by thetestingacademy

80

Generate comprehensive test plans with coverage matrices and risk-based testing

e2e
integration
unit
880/100

JUnit 5 Testing

by thetestingacademy

81

Production-grade Java unit and integration testing with JUnit 5 covering assertions, parameterized tests, lifecycle hooks, Mockito mocking, nested tests, and extensions.

unit
integration
junit5
881/100

MSW Mock Service Worker

by qaskills

82

API mocking with Mock Service Worker for browser and Node.js environments including request interception, response simulation, and network error testing.

unit
integration
msw
882/100

Next.js Testing Patterns

by qaskills

85

Next.js application testing covering Server Components, App Router, API routes, middleware, dynamic routes, and SSR/SSG testing patterns.

unit
integration
e2e
nextjs
885/100

Ruby on Rails Testing

by qaskills

89

Rails application testing with RSpec, FactoryBot, Capybara, system tests, request specs, model specs, and Rails-specific testing conventions.

unit
integration
e2e
rails
rspec
889/100

Ruby Test::Unit

by thetestingacademy

86

Classic xUnit-style Ruby testing with Test::Unit covering assertions, fixtures, test case organization, mocking patterns, and lifecycle hooks for reliable Ruby application testing.

unit
integration
test-unit
886/100

Supabase Testing

by thetestingacademy

88

Testing patterns for Supabase applications covering auth flow testing, Row Level Security policy testing, realtime subscription testing, and edge function testing

unit
integration
e2e
vitest
jest
888/100

Swift Testing Patterns

by qaskills

83

Swift testing with XCTest, Swift Testing framework, async/await testing, SwiftUI preview testing, and performance measurement.

unit
integration
xctest
883/100

Test Isolation Strategies

by qaskills

81

Test isolation techniques including database cleanup, transaction rollback, parallel test execution, and shared resource management.

unit
integration
881/100

Cargo Fuzz Testing

by qaskills

84

Fuzz testing for Rust applications using cargo-fuzz and libFuzzer to discover memory safety issues, panics, and undefined behavior.

security
unit
cargo-fuzz
884/100

Pairwise Test Generator

by Pramod

85

Generate optimized test combinations using pairwise (all-pairs) testing algorithms to achieve maximum coverage with minimum test cases across multiple input parameters

unit
integration
jest
vitest
885/100

Test-Driven Development (TDD)

by thetestingacademy

84

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.

unit
integration
functional
jest
pytest
784/100

CI/CD Pipeline Advanced

by thetestingacademy

81

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.

e2e
unit
integration
github-actions
jenkins
781/100

Spring Boot Testing

by qaskills

89

Spring Boot application testing with @SpringBootTest, MockMvc, @DataJpaTest, Testcontainers, and Spring Security testing patterns.

unit
integration
spring-boot
junit
789/100

Vitest Testing

by thetestingacademy

89

Modern JavaScript and TypeScript testing with Vitest, covering unit testing, integration testing, mocking, snapshots, browser mode, and Vite integration.

unit
integration
789/100

Approval Testing

by qaskills

81

Approval testing methodology using ApprovalTests library for verifying complex outputs against human-approved results with diff-based review.

unit
integration
781/100

Debugging Strategies

by thetestingacademy

81

Advanced debugging patterns for test failures covering root cause analysis, flakiness investigation, performance debugging, and systematic troubleshooting methodologies.

e2e
unit
integration
playwright
cypress
781/100

LibFuzzer Coverage-Guided Fuzzing

by qaskills

88

Coverage-guided fuzz testing using libFuzzer for C/C++ applications to find memory corruption, buffer overflows, and crash-inducing inputs.

security
unit
libfuzzer
788/100

Drizzle ORM Testing

by thetestingacademy

88

Testing patterns for Drizzle ORM covering migration testing, query builder testing, transaction testing, and database integration testing with PostgreSQL, SQLite, and MySQL.

unit
integration
vitest
jest
788/100

Test Suite Performance

by qaskills

87

Optimizing test suite execution speed with parallelization, test splitting, caching, selective test execution, and test impact analysis.

unit
integration
787/100

Cypress Component Testing

by qaskills

88

Component testing with Cypress including mount API, React/Vue/Angular component testing, stub patterns, and visual snapshot testing.

unit
integration
cypress
788/100

TestNG Testing

by thetestingacademy

80

Advanced Java testing with TestNG covering data providers, parallel execution, test groups, XML suite configuration, listeners, soft assertions, and dependency management.

unit
integration
testng
680/100

Concurrency Testing Patterns

by qaskills

87

Testing concurrent code including race condition detection, deadlock prevention, thread safety verification, and parallel execution correctness.

unit
integration
687/100

Laravel Testing Patterns

by qaskills

87

Laravel PHP testing with PHPUnit, feature tests, browser tests with Dusk, database factories, mocking facades, and HTTP testing helpers.

unit
integration
e2e
laravel
phpunit
687/100

PHPUnit Testing

by thetestingacademy

83

Comprehensive PHP testing with PHPUnit covering assertions, data providers, mocking, test doubles, database testing, and HTTP testing for reliable PHP application development.

unit
integration
phpunit
683/100

Go Testing Patterns

by qaskills

85

Go testing with testing package, table-driven tests, subtests, benchmarks, test fixtures, httptest, and testify assertions.

unit
integration
685/100

MSTest Testing

by thetestingacademy

80

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.

unit
integration
mstest
680/100

Error Handling Testing Patterns

by qaskills

87

Testing error handling paths including exception propagation, error boundaries, retry logic, circuit breakers, and graceful degradation.

unit
integration
587/100

Codeception Testing

by thetestingacademy

85

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.

e2e
functional
unit
codeception
phpunit
585/100

Clerk Auth Testing

by thetestingacademy

81

Testing patterns for Clerk authentication including sign-in flow testing, protected route testing, webhook verification, middleware testing, and organization-based access control

unit
integration
e2e
vitest
jest
581/100

Test Coverage Optimization

by qaskills

83

Optimizing test coverage beyond line coverage including branch coverage, mutation score, path coverage, and identifying meaningful coverage gaps.

unit
integration
583/100

Test Migration Framework

by thetestingacademy

84

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.

unit
integration
e2e
playwright
jest
584/100

Library Backward Compatibility

by qaskills

87

Testing library backward compatibility including public API surface verification, semver compliance, TypeScript type compatibility, and migration path validation.

contract
unit
587/100

Django Testing Patterns

by qaskills

88

Django application testing with TestCase, fixtures, factory_boy, model testing, view testing, middleware testing, and Django REST framework testing.

unit
integration
django
pytest
588/100

Flask Testing Patterns

by qaskills

86

Flask application testing with test client, fixture patterns, SQLAlchemy model testing, blueprint testing, and Flask-specific extension testing.

unit
integration
api
flask
pytest
486/100

Component Isolation Testing

by qaskills

84

Isolating and testing individual UI components with dependency mocking, state injection, and visual snapshot verification.

unit
visual
484/100

Jasmine Testing

by thetestingacademy

84

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
integration
jasmine
484/100

TDD Red-Green-Refactor

by qaskills

80

Test-Driven Development mastery with red-green-refactor cycle, outside-in TDD, test-first design, and incremental development patterns.

unit
integration
480/100

Test Parameterization Patterns

by qaskills

81

Data-driven testing with parameterized tests, test matrices, combinatorial testing, and pairwise parameter generation techniques.

unit
integration
381/100

Remix Testing

by thetestingacademy

85

Testing patterns for Remix applications covering loader testing, action testing, route testing, form submission testing, and nested route integration testing.

unit
integration
e2e
vitest
playwright
385/100

NestJS Testing Patterns

by qaskills

84

NestJS application testing with @nestjs/testing, dependency injection mocking, e2e testing with supertest, guard testing, and pipe validation testing.

unit
integration
api
nestjs
jest
384/100

Express.js Testing Patterns

by qaskills

80

Express.js API testing with supertest, middleware testing, route handler testing, error handling verification, and authentication testing.

unit
integration
api
express
jest
380/100

Test Doubles Patterns

by qaskills

85

Comprehensive guide to test doubles including mocks, stubs, spies, fakes, and dummies with when-to-use guidelines and anti-pattern avoidance.

unit
385/100