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

75Health
Library Go

testify

The essential Go toolkit for assertions, mocks, and structured test suites.

26,217
MIT
Used by 102
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
48Health
Library Go

go-cmp

A safer, more powerful alternative to reflect.DeepEqual for comparing Go values in tests.

4,678
BSD 3
Used by 29
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
54Health
Library Go

go-sqlmock

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

6,573
Other
Used by 12
80Health
Library Go

miniredis

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

3,623
MIT
Used by 11
82Health
Library PyPI

pluggy

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

1,695
MIT
Used by 11
81Health
Framework Go

Ginkgo

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

9,061
MIT
Used by 10
59Health
Library Go

afero

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

6,705
Apache 2.0
Used by 10
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
72Health
Library Go

Gofakeit

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

5,391
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
43Health
Library Go

gock

Versatile HTTP traffic mocking for Go, intercepting any net/http-based client for deterministic tests.

2,215
MIT
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
48Health
Framework Go

GoConvey

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

8,404
MIT
Used by 3
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
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
74Health
Tool Go

toxiproxy

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

12,364
MIT
Used by 2
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

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