Testing
Testing frameworks, mocking libraries, and test utilities beyond ExUnit. Packages among the 3,000 most downloaded in the past 90 days.
-
excoveralls 0.18.5
Coverage report tool for Elixir with coveralls.io integration.
8621.9m last 90 days8621.9m -
1.4k1.8m
-
8391.7m
-
9481.4m
-
junit_formatter 3.4.0
An ExUnit.Formatter that produces an XML report of the tests run in the project _build dir. It is a good fit with Jenkins test reporting plugin, for example.
1131.2m last 90 days1131.2m -
ex_machina 2.8.2
A factory library by the creators of FactoryBot (née FactoryGirl)
2.1k1.2m last 90 days2.1k1.2m -
214828.5k
-
mock 0.3.9
A mocking library for the Elixir language. We use the Erlang meck library to provide module mocking functionality for Elixir. It uses macros in Elixir to expose the functionality in a convenient manner for integrating in Elixir tests.
691784.7k last 90 days691784.7k -
579676.3k
-
-591.3k
-
bypass 2.1.0
Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests. This is helpful when you want to create a mock HTTP server and test how your HTTP client handles different types of server responses.
1.0k527.2k last 90 days1.0k527.2k -
41358.7k
-
919348.3k
-
77346.9k
-
49303.6k
-
597272.0k
-
1.8k209.9k
-
41201.0k
-
15194.3k
-
exvcr 0.17.1
HTTP request/response recording library for elixir, inspired by VCR.
746158.7k last 90 days746158.7k -
95140.7k
-
phoenix_test_playwright 0.18.0
Execute PhoenixTest cases in an actual browser via Playwright.
89132.1k last 90 days89132.1k -
23127.9k
-
assertions 0.22.0
Helpful functions with great error messages to help you write better tests.
151105.0k last 90 days151105.0k -
mix_test_interactive 6.0.0
Interactive test runner for mix test with watch mode.
13087.8k last 90 days13087.8k -
1651.6k
-
7945.6k
-
13445.5k
-
propcheck 1.5.0
PropCheck provides property based testing and is an Elixir layer around PropEr. It is also inspired by Quviq's QuickCheck Elixir library.
39345.0k last 90 days39345.0k -
5043.8k
-
telemetry_test 0.1.2
Simplify and reduce test clutter when testing Telemetry events
743.1k last 90 days743.1k -
14041.7k
-
23937.3k
-
15435.3k
-
3034.5k
-
9932.4k
-
4430.1k
-
rebar3_codecov 0.7.0
Rebar3 plugin converting .coverdata files to codecov compatible JSON
1229.6k last 90 days1229.6k -
3829.0k
-
live_isolated_component 0.11.0
Simple library to test LV components live in isolation
4028.3k last 90 days4028.3k -
4927.6k
-
20525.4k
-
2924.0k
-
assert_value 0.10.5
ExUnit's assert on steroids that writes and updates tests for you
10823.3k last 90 days10823.3k -
1222.7k
-
double 0.8.2
Double is a simple library to help build injectable dependencies for your tests. It does NOT override behavior of existing modules or functions.
4921.5k last 90 days4921.5k -
fake_server 2.1.0
With FakeServer you can create individual HTTP servers for each test case, allowing external requests to be tested without the need for mocks.
7220.8k last 90 days7220.8k -
a11y_audit 0.5.0
Automated accessibility testing for Elixir web applications using axe-core
5919.7k last 90 days5919.7k -
wormwood 0.1.3
Wormwood is a tiny library to aid in testing GraphQL queries against an Absinthe schema. It allows you to test your query documents inside ExUnit test modules, and requires no HTTP requests to occur during testing.
9218.1k last 90 days9218.1k -
117.9k
-
7117.6k
-
81317.6k
-
hound 1.1.1
Webdriver library for integration testing and browser automation
1.4k17.6k last 90 days1.4k17.6k -
6415.6k
-
2115.3k
-
-14.6k
-
parameterized_test 0.6.2
A utility for defining eminently readable parameterized (or example-based) tests in ExUnit
6214.5k last 90 days6214.5k -
arch_test 0.3.1
ArchUnit-inspired architecture testing library for Elixir. Write ExUnit tests that enforce dependency rules, layered architecture, modulith bounded contexts, and naming conventions.
1714.2k last 90 days1714.2k -
213.8k
-
testcontainers 2.4.0
Testcontainers is an Elixir library that supports ExUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
17213.8k last 90 days17213.8k -
313.7k
-
muex 0.11.3
Language-agnostic mutation testing library for Elixir, Erlang, and other BEAM languages. Evaluates test suite quality by introducing deliberate bugs into code and verifying that tests catch them. Intelligent file filtering, 6 mutation strategies, parallel execution, multiple output formats.
3013.5k last 90 days3013.5k -
test_iex 0.1.1
A utility module that helps you iterate faster on unit tests. This module lets execute specific tests from within a running iex shell to avoid needing to start and stop the whole application every time.
1013.3k last 90 days1013.3k -
Playwright is an Elixir library to automate Chromium, Firefox and WebKit browsers with a single API. Playwright delivers automation that is ever-green, capable, reliable and fast.
11.6k last 90 days-11.6k -
-11.2k
-
211.1k
-
efx 1.0.1
A library to declaratively write testable effects for asynchronous testing
10010.9k last 90 days10010.9k -
2210.2k
-
119.8k
-
eventually 1.1.0
Macros to support assertions/refutations that might not be correct immediately but will eventually become so due to, say, eventual consistency.
89.6k last 90 days89.6k -
phoenix_integration 0.9.2
Lightweight server-side integration test functions for Phoenix. Optimized for Elixir Pipes and the existing Phoenix.ConnTest framework to emphasize both speed and readability.
2209.5k last 90 days2209.5k -
ex_meck 0.3.0
A mocking library particularly suitable for stateful property based testing.
29.3k last 90 days29.3k -
-9.2k
-
729.2k
-
248.9k
-
grpc_mock 0.3.0
GrpcMock is mocking library for [Elixir gRPC implementation](https://github.com/tony612/grpc-elixir). It provides seamless mock creation based on `pb.ex` definition and usual mocking "expect" - "verify" mechanisms.
38.8k last 90 days38.8k -
ex_unit_summary 0.2.0
The library outputs test results to the console, which helps speed up the red-green test correction cycle (inspired by rspec)
138.6k last 90 days138.6k -
1388.1k
-
snabbkaffex 0.1.0
A thin Elixir wrapper around the Erlang snabbkaffe trace-based testing library.
08.1k last 90 days08.1k -
28.1k
-
07.9k
-
-7.1k
-
ex_unit_cluster 0.7.0
Spin up dynamic clusters in ExUnit tests with no special setup necessary.
46.9k last 90 days46.9k -
776.9k
-
176.6k
-
66.5k
-
http_mock_pal 1.0.0
A convenience library to spawn plug router with your application for testing purposes
26.3k last 90 days26.3k -
moxable 0.2.0
A simplified method for configuring modules to be mockable with Mox in Elixir projects.
6.0k last 90 days-6.0k -
cucumber_test_release_automation 0.0.136
Dummy package to test release automation scripts
05.8k last 90 days05.8k -
html_test_helpers 0.1.7
HTMLTestHelpers provides function helpers for unit testing allowing easy assertions for HTML elements data queried by data-testid attribute.
85.7k last 90 days85.7k -
545.6k
-
proper_contrib 0.3.2
A collection of goodies for the property-based testing framework PropEr
95.6k last 90 days95.6k -
quixir 0.9.3
A simple property-based testing framework written in pure Elixir.
2665.6k last 90 days2665.6k -
double_down 0.69.0
Builds on the Mox pattern — generates behaviours and dispatch facades from `defcallback` declarations — and adds stateful test doubles powerful enough to test Ecto.Repo operations without a database.
55.4k last 90 days55.4k -
05.3k
-
cucumber_messages 34.2.1
Elixir implementation of the cucumber messages protobuf schema
414.9k last 90 days414.9k -
14.8k
-
-4.8k
-
994.7k
-
874.6k
-
six 0.4.2
Zero-dependency Elixir coverage tool built for AI-assisted development
64.5k last 90 days64.5k -
264.4k
-
power_assert 0.3.0
Power Assert in Elixir. Shows evaluation results each expression.
2154.0k last 90 days2154.0k -
response_snapshot 1.0.1
ResponseSnapshot is a testing tool for Elixir that captures the output of responses and ensures that they do not change in between test runs.
363.9k last 90 days363.9k -
stubr 1.5.1
Stubr is a set of functions helping people to create stubs and spies in Elixir.
993.9k last 90 days993.9k -
13.9k
-
63.9k
-
placebo 2.0.0
A mocking library for ExUnit inspired by RSpec and based on meck.
153.8k last 90 days153.8k -
03.8k
-
173.6k
-
383.6k
-
smart_city_test 3.0.0
A library that contains test utilites used in the Smart City project
13.5k last 90 days13.5k -
83.4k
-
paper_tiger 1.5.1
A stateful mock Stripe server for testing Elixir applications
133.4k last 90 days133.4k -
ex_unit_json 0.6.1
AI-friendly JSON test output for ExUnit. Provides structured JSON output from mix test for use with AI editors like Claude Code.
103.3k last 90 days103.3k