Testing & Mocking Packages
Testing frameworks, assertion libraries, and mocking tools for writing reliable unit, integration, and end-to-end tests (testify, pytest, Vitest).
Packages in Testing & Mocking
Kind
Sort:Used by Most Apps
Faker
Generate realistic fake data for seeding, testing, and anonymizing PHP apps
testcontainers-node
Spin up disposable Docker containers to run real databases, brokers, and browsers in your Node.js tests.
pytest-xdist
Distribute pytest test runs across multiple CPUs and hosts to cut suite runtime
Criterion.rs
Statistics-driven microbenchmarking for Rust that reliably detects performance changes.
serial_test
Attribute macros that serialize or parallelize Rust tests via named locks.
pytest-mock
A pytest plugin that provides a `mocker` fixture wrapping Python's `unittest.mock`, with automatic teardown between tests.
playwright-python
A Python library that automates Chromium, Firefox, and WebKit through one reliable, auto-waiting API.
pytest-timeout
A pytest plugin that terminates hanging or excessively slow tests and dumps a stack trace when it does
go-sqlmock
A mock sql/driver implementation for Go that simulates database behavior in tests without a real database connection.
Gomega
Ginkgo's preferred matcher library for expressive, readable assertions in Go tests
c8
Native V8 code coverage for Node.js, with Istanbul-compatible reports and zero build-step setup.
mock
GoMock is a mocking framework for Go that generates type-safe mock implementations of interfaces, integrating directly with the standard testing package.
miniredis
A pure Go, in-memory Redis server for fast, dependency-free unit tests.
pluggy
The minimalist, production-ready plugin and hook system that powers pytest, tox, and devpi
jest-junit
A Jest reporter that converts test results into JUnit-compatible XML for CI dashboards and test-analytics tools.
Ginkgo
A mature, BDD-style testing framework for Go that pairs with Gomega to write expressive, parallelizable specs.
afero
A drop-in filesystem abstraction for Go that swaps OS, in-memory, archive, and cloud backends without touching your code.
freezegun
Let your Python tests travel through time by mocking datetime, time, and uuid calls to a fixed or ticking moment.
start-server-and-test
Starts your dev server, waits for it to respond, runs your test command, then shuts the server down automatically.
deep-equal
A standalone port of Node's own assert.deepEqual algorithm, giving spec-accurate deep equality checks in Node and the browser alike.
jest-watch-typeahead
Jest watch-mode plugins that let you filter running tests by file name or test name through an interactive typeahead prompt.
go-spew
A deep pretty printer for Go data structures with full type, pointer, and cycle-safe debug output.
Gofakeit
A zero-dependency Go library with 310+ functions for generating random fake data, from single values to fully populated structs.
jest-extended
Additional custom matchers for Jest to extend and simplify your test assertions.