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

52Health
Library Composer

Faker

Generate realistic fake data for seeding, testing, and anonymizing PHP apps

3,999
MIT
Used by 21
90Health
Library npm

testcontainers-node

Spin up disposable Docker containers to run real databases, brokers, and browsers in your Node.js tests.

2,632
MIT
Used by 20
84Health
Tool PyPI

pytest-xdist

Distribute pytest test runs across multiple CPUs and hosts to cut suite runtime

1,924
MIT
Used by 19
65Health
Library Cargo

Criterion.rs

Statistics-driven microbenchmarking for Rust that reliably detects performance changes.

481
Other
Used by 18
64Health
Library Cargo

serial_test

Attribute macros that serialize or parallelize Rust tests via named locks.

296
MIT
Used by 17
87Health
Library PyPI

pytest-mock

A pytest plugin that provides a `mocker` fixture wrapping Python's `unittest.mock`, with automatic teardown between tests.

2,040
MIT
Used by 16
94Health
Library PyPI

playwright-python

A Python library that automates Chromium, Firefox, and WebKit through one reliable, auto-waiting API.

15,061
Apache 2.0
Used by 15
62Health
Tool PyPI

pytest-timeout

A pytest plugin that terminates hanging or excessively slow tests and dumps a stack trace when it does

260
MIT
Used by 13
49Health
Library Go

go-sqlmock

A mock sql/driver implementation for Go that simulates database behavior in tests without a real database connection.

6,570
Other
Used by 12
86Health
Library Go

Gomega

Ginkgo's preferred matcher library for expressive, readable assertions in Go tests

2,357
MIT
Used by 12
58Health
Tool npm

c8

Native V8 code coverage for Node.js, with Istanbul-compatible reports and zero build-step setup.

2,123
Other
Used by 12
46Health
Library Go

mock

GoMock is a mocking framework for Go that generates type-safe mock implementations of interfaces, integrating directly with the standard testing package.

9,317
Apache 2.0
Used by 11
85Health
Library Go

miniredis

A pure Go, in-memory Redis server for fast, dependency-free unit tests.

3,627
MIT
Used by 11
81Health
Library PyPI

pluggy

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

1,705
MIT
Used by 11
59Health
Tool npm

jest-junit

A Jest reporter that converts test results into JUnit-compatible XML for CI dashboards and test-analytics tools.

502
Apache 2.0
Used by 11
82Health
Framework Go

Ginkgo

A mature, BDD-style testing framework for Go that pairs with Gomega to write expressive, parallelizable specs.

9,069
MIT
Used by 10
81Health
Library Go

afero

A drop-in filesystem abstraction for Go that swaps OS, in-memory, archive, and cloud backends without touching your code.

6,714
Apache 2.0
Used by 10
46Health
Library PyPI

freezegun

Let your Python tests travel through time by mocking datetime, time, and uuid calls to a fixed or ticking moment.

4,532
Apache 2.0
Used by 9
83Health
Tool npm

start-server-and-test

Starts your dev server, waits for it to respond, runs your test command, then shuts the server down automatically.

1,583
MIT
Used by 9
37Health
Library npm

deep-equal

A standalone port of Node's own assert.deepEqual algorithm, giving spec-accurate deep equality checks in Node and the browser alike.

792
MIT
Used by 9
52Health
Tool npm

jest-watch-typeahead

Jest watch-mode plugins that let you filter running tests by file name or test name through an interactive typeahead prompt.

412
MIT
Used by 9
41Health
Library Go

go-spew

A deep pretty printer for Go data structures with full type, pointer, and cycle-safe debug output.

6,426
Other
Used by 8
74Health
Library Go

Gofakeit

A zero-dependency Go library with 310+ functions for generating random fake data, from single values to fully populated structs.

5,406
MIT
Used by 8
81Health
Library npm

jest-extended

Additional custom matchers for Jest to extend and simplify your test assertions.

2,349
MIT
Used by 8

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