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
Vitest
A blazing-fast unit testing framework powered by Vite, with Jest-compatible APIs out of the box.
jest-dom
Custom Jest matchers for asserting on the state of the DOM in your tests.
jest
Delightful JavaScript testing with zero-config setup, snapshots, mocking, and coverage
pytest
The Python testing framework that makes writing small tests easy and scales to complex functional test suites.
mocha
The classic, battle-tested JavaScript test framework for Node.js and the browser, built around flexible async testing and pluggable reporters.
identity-obj-proxy
An ES6 Proxy that echoes back every key you access, built to mock CSS Modules and other webpack style imports in Jest 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.
jest-extended
Additional custom matchers for Jest to extend and simplify your test assertions.
Faker
A Python library that generates realistic fake data for testing, seeding, and anonymizing datasets across 70+ locales.
hypothesis
Property-based testing for Python that generates edge cases and shrinks failures to their simplest reproducing example.
fake-useragent
Up-to-date user-agent string faker backed by a real-world browser usage database, bundled offline.
fakeredis
A pure-Python, in-memory implementation of the Redis protocol for testing.
pytest-order
Pytest plugin for running tests in a specific, controllable order
behave
A Python behavior-driven development framework that runs Gherkin feature files against step definitions written in plain Python.
testcontainers-python
Throwaway Docker containers for real integration tests, driven straight from Python.
pytest-html
A pytest plugin that turns your test run into an interactive, shareable HTML report.
mock
The rolling backport of Python's unittest.mock library
factory_boy
A versatile test fixtures replacement for Python, providing declarative factories for building complex test objects.
VCR.py
Record and replay HTTP interactions to speed up tests
DeepEval
A Pytest-like open-source framework for unit-testing and evaluating LLM applications with research-backed metrics.
pywinauto
A Python library that drives Windows GUI apps by sending mouse, keyboard, and text-based actions to dialogs and controls.
pytest-sugar
A pytest plugin that replaces the default test runner output with a live progress bar, instant failure display, and colorized results.
python-devtools
Python's missing debug print command, plus pretty formatting, timing, and pytest helpers.