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

86Health
Library PyPI

fakeredis

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

466
BSD 3
Used by 4
68Health
Tool PyPI

pytest-order

Pytest plugin for running tests in a specific, controllable order

211
MIT
Used by 4
90Health
SDK PyPI

Opik

Python SDK for tracing, evaluating, and monitoring LLM applications, RAG pipelines, and agentic workflows.

22,860
Apache 2.0
Used by 3
48Health
Framework Go

GoConvey

Behavior-driven testing for Go with nested specs, rich assertions, and a live browser results UI.

8,399
MIT
Used by 3
41Health
SDK npm

chrome-remote-interface

A Node.js client for the Chrome DevTools Protocol, exposing every browser command, event, and type as a plain JavaScript API.

4,558
MIT
Used by 3
89Health
Tool Composer

Behat

A behavior-driven development (BDD) testing framework for PHP driven by Gherkin.

3,970
MIT
Used by 3
82Health
Framework PyPI

behave

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

3,542
Other
Used by 3
74Health
Library Composer

DoctrineFixturesBundle

Symfony integration for Doctrine Data Fixtures to load sample and test data into your database

2,531
MIT
Used by 3
81Health
Library PyPI

testcontainers-python

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

2,318
Apache 2.0
Used by 3
74Health
Library npm

randexp.js

Generates random strings that match any given JavaScript regular expression.

1,868
MIT
Used by 3
69Health
Library Cargo

enigo

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

1,800
MIT
Used by 3
91Health
Library Go

fake-gcs-server

A Go emulator and library for Google Cloud Storage that runs your GCS-dependent tests without touching the real API.

1,490
Other
Used by 3
68Health
Library npm

chrome-launcher

Finds and launches Google Chrome from Node.js with the DevTools Protocol port open, ready for automation.

1,366
Apache 2.0
Used by 3
55Health
Library Go

gofakes3

An embeddable fake AWS S3 server for local development and integration testing of S3-backed Go code.

938
MIT
Used by 3
55Health
Library Cargo

arbitrary

The Rust trait for generating structured data from arbitrary, unstructured input

887
Apache 2.0
Used by 3
59Health
Library Go

faker

Struct-tag-driven fake data generator for Go, turning any struct into realistic test fixtures with one function call.

868
MIT
Used by 3
66Health
Tool PyPI

pytest-html

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

781
MPL-2.0
Used by 3
41Health
Library Go

clockwork

A fake clock library for Go that makes testing time-dependent code deterministic and fast.

729
Apache 2.0
Used by 3
40Health
Library PyPI

mock

The rolling backport of Python's unittest.mock library

537
Other
Used by 3
61Health
Tool PyPI

pytest-docker

Pytest fixtures that spin up Docker Compose services for integration tests, then tear them down automatically.

489
MIT
Used by 3
30Health
Tool PyPI

pytest-icdiff

A pytest plugin for clearer, colorized side-by-side assertion diffs.

329
Other
Used by 3
49Health
Library Cargo

approx

Approximate floating point equality comparisons and assertions for Rust

190
Apache 2.0
Used by 3
32Health
Library Cargo

assert-json-diff

Compare two serializable values by diffing their JSON and get clear, precise error output.

96
MIT
Used by 3
78Health
Tool Go

toxiproxy

A TCP proxy for injecting network and system failures to test how applications handle unreliable dependencies.

12,453
MIT
Used by 2

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