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

77Health
Library Cargo

Proptest

Hypothesis-inspired property testing for Rust with automatic shrinking to minimal failing cases.

2,269
Other
Used by 8
42Health
Library Cargo

rust-pretty-assertions

Drop-in replacements for Rust's assert_eq! and assert_ne! that print colorful, side-by-side diffs instead of raw Debug dumps.

1,358
Other
Used by 8
68Health
Library Cargo

similar

A dependency-free Rust diffing library with Myers, Patience, Histogram, and LCS algorithms

1,337
Apache 2.0
Used by 8
42Health
Library npm

assert

Node.js's assert module, ported to run in browsers and bundlers

298
MIT
Used by 8
90Health
Library PyPI

Faker

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

19,458
MIT
Used by 7
70Health
Library Go

Dockertest

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

4,527
Apache 2.0
Used by 7
77Health
Library PyPI

responses

A utility library for mocking out the Python requests library in your test suite.

4,342
Apache 2.0
Used by 7
59Health
Library npm

vitest-canvas-mock

A drop-in HTML canvas mock for Vitest that emulates spec-accurate CanvasRenderingContext2D behavior in jsdom test environments.

70
MIT
Used by 7
98Health
Library PyPI

Selenium

Official Python bindings for Selenium WebDriver browser automation

34,562
Apache 2.0
Used by 6
60Health
Library Cargo

mockall

A powerful mock object library for Rust unit testing.

1,849
Other
Used by 6
40Health
Library Cargo

libfuzzer-sys

Rust bindings to LLVM's libFuzzer for coverage-guided fuzz testing

268
Apache 2.0
Used by 6
87Health
Library Go

chromedp

A faster, simpler way to drive Chrome browsers via the DevTools Protocol, written in pure Go with zero external dependencies.

13,335
MIT
Used by 5
90Health
Library PyPI

hypothesis

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

9,108
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,049
Apache 2.0
Used by 5
88Health
Library Composer

Symfony DomCrawler

A PHP component for navigating, filtering, and extracting data from HTML and XML documents.

4,026
MIT
Used by 5
93Health
Tool PyPI

coveragepy

The industry-standard code coverage tool for measuring which lines and branches your Python tests actually execute.

3,424
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,213
MIT
Used by 5
61Health
Library Go

httpmock

Drop-in HTTP mocking for Go that intercepts requests at the http.RoundTripper level, so tests never touch the real network.

2,078
MIT
Used by 5
79Health
Library Cargo

Testcontainers for Rust

Integration-test against throwaway Docker containers from within Rust

1,138
Apache 2.0
Used by 5
92Health
SDK PyPI

LangSmith Python SDK

The official Python client for tracing, evaluating, and monitoring LLM applications on the LangSmith platform.

1,082
MIT
Used by 5
23Health
Library Cargo

temp-env

Set environment variables temporarily for the duration of a closure, mainly for Rust tests.

46
Other
Used by 5
84Health
Library Composer

symfony/browser-kit

Simulates a web browser in PHP — navigate pages, click links, and submit forms programmatically

3,007
MIT
Used by 4
65Health
Library Go

go-internal

The Go team's own script-driven testscript engine and stdlib-internal packages, factored out for any Go project to import.

993
BSD 3
Used by 4
39Health
Library Go

clock

A small Go interface that swaps the real-time clock for a fully controllable mock, making timer- and deadline-dependent code deterministic to test.

690
MIT
Used by 4

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