Packages

Testing & Mocking Packages

Testing frameworks, assertion libraries, and mocking tools for writing reliable unit, integration, and end-to-end tests (testify, pytest, Vitest).

166 packages

Packages in Testing & Mocking

92Health
Framework npm

Playwright

Cross-browser end-to-end web testing and browser automation with a single API for Chromium, Firefox, and WebKit.

96,772
Apache 2.0
Used by 229
96Health
Framework PyPI

pytest

The Python testing framework that makes writing small tests easy and scales to complex functional test suites.

14,543
MIT
Used by 100
95Health
Library npm

Puppeteer

Node.js library for automating Chrome and Firefox over the DevTools Protocol and WebDriver BiDi

95,625
Apache 2.0
Used by 39
93Health
Tool npm

Cypress

Fast, easy, and reliable end-to-end and component testing for anything that runs in a browser.

51,026
MIT
Used by 38
91Health
Library Go

testcontainers-go

Programmatically spin up disposable Docker containers for Go integration and smoke tests, then tear them down automatically.

4,993
MIT
Used by 21
82Health
Library PyPI

pluggy

The minimalist, production-ready plugin and hook system that powers pytest, tox, and devpi

1,695
MIT
Used by 11
93Health
Library PyPI

Faker

A Python library that generates realistic fake data for testing, seeding, and anonymizing datasets across 70+ locales.

19,412
MIT
Used by 7
54Health
Library Go

Dockertest

Spin up real Docker containers for Go integration tests, then tear them down automatically.

4,526
Apache 2.0
Used by 7
90Health
Library PyPI

hypothesis

Property-based testing for Python that generates edge cases and shrinks failures to their simplest reproducing example.

9,028
MPL-2.0
Used by 5
49Health
Library PyPI

fake-useragent

Up-to-date user-agent string faker backed by a real-world browser usage database, bundled offline.

4,048
Apache 2.0
Used by 5
86Health
Library PyPI

fakeredis

A pure-Python, in-memory implementation of the Redis protocol for testing.

460
BSD 3
Used by 4
67Health
Tool PyPI

pytest-order

Pytest plugin for running tests in a specific, controllable order

211
MIT
Used by 4
83Health
Framework PyPI

behave

A Python behavior-driven development framework that runs Gherkin feature files against step definitions written in plain Python.

3,529
Other
Used by 3
82Health
Library PyPI

testcontainers-python

Throwaway Docker containers for real integration tests, driven straight from Python.

2,303
Apache 2.0
Used by 3
76Health
Library Cargo

enigo

Cross-platform keyboard and mouse input simulation for Rust on Linux, macOS, and Windows.

1,791
MIT
Used by 3
72Health
Tool PyPI

pytest-html

A pytest plugin that turns your test run into an interactive, shareable HTML report.

779
MPL-2.0
Used by 3
40Health
Library PyPI

mock

The rolling backport of Python's unittest.mock library

537
Other
Used by 3
43Health
Library PyPI

factory_boy

A versatile test fixtures replacement for Python, providing declarative factories for building complex test objects.

3,809
MIT
Used by 2
70Health
Library PyPI

VCR.py

Record and replay HTTP interactions to speed up tests

3,016
MIT
Used by 2
91Health
Framework PyPI

DeepEval

A Pytest-like open-source framework for unit-testing and evaluating LLM applications with research-backed metrics.

18,471
Apache 2.0
Used by 1
44Health
Library PyPI

undetected-chromedriver

A drop-in Selenium Chrome WebDriver replacement that patches the chromedriver binary and browser fingerprint to evade bot-mitigation systems.

12,857
GPL 3.0
Used by 1
55Health
Library PyPI

pywinauto

A Python library that drives Windows GUI apps by sending mouse, keyboard, and text-based actions to dialogs and controls.

6,184
BSD 3
Used by 1
41Health
Tool PyPI

pytest-sugar

A pytest plugin that replaces the default test runner output with a live progress bar, instant failure display, and colorized results.

1,532
BSD 3
Used by 1
38Health
Library PyPI

python-devtools

Python's missing debug print command, plus pretty formatting, timing, and pytest helpers.

1,078
MIT
Used by 1

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers