Testing & Mocking Packages
Testing frameworks, assertion libraries, and mocking tools for writing reliable unit, integration, and end-to-end tests (testify, pytest, Vitest).
Packages in Testing & Mocking
Kind
Sort:Used by Most Apps
Proptest
Hypothesis-inspired property testing for Rust with automatic shrinking to minimal failing cases.
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.
similar
A dependency-free Rust diffing library with Myers, Patience, Histogram, and LCS algorithms
assert
Node.js's assert module, ported to run in browsers and bundlers
Faker
A Python library that generates realistic fake data for testing, seeding, and anonymizing datasets across 70+ locales.
Dockertest
Spin up real Docker containers for Go integration tests, then tear them down automatically.
responses
A utility library for mocking out the Python requests library in your test suite.
vitest-canvas-mock
A drop-in HTML canvas mock for Vitest that emulates spec-accurate CanvasRenderingContext2D behavior in jsdom test environments.
Selenium
Official Python bindings for Selenium WebDriver browser automation
mockall
A powerful mock object library for Rust unit testing.
libfuzzer-sys
Rust bindings to LLVM's libFuzzer for coverage-guided fuzz testing
chromedp
A faster, simpler way to drive Chrome browsers via the DevTools Protocol, written in pure Go with zero external dependencies.
hypothesis
Property-based testing for Python that generates edge cases and shrinks failures to their simplest reproducing example.
fake-useragent
Up-to-date user-agent string faker backed by a real-world browser usage database, bundled offline.
Symfony DomCrawler
A PHP component for navigating, filtering, and extracting data from HTML and XML documents.
coveragepy
The industry-standard code coverage tool for measuring which lines and branches your Python tests actually execute.
gock
Versatile HTTP traffic mocking for Go, intercepting any net/http-based client for deterministic tests.
httpmock
Drop-in HTTP mocking for Go that intercepts requests at the http.RoundTripper level, so tests never touch the real network.
Testcontainers for Rust
Integration-test against throwaway Docker containers from within Rust
LangSmith Python SDK
The official Python client for tracing, evaluating, and monitoring LLM applications on the LangSmith platform.
temp-env
Set environment variables temporarily for the duration of a closure, mainly for Rust tests.
symfony/browser-kit
Simulates a web browser in PHP — navigate pages, click links, and submit forms programmatically
go-internal
The Go team's own script-driven testscript engine and stdlib-internal packages, factored out for any Go project to import.
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.