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.
8631.6m last 90 days8631.6m -
1.4k1.5m
-
8391.5m
-
9461.1m
-
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.1m last 90 days1131.1m -
ex_machina 2.8.2
A factory library by the creators of FactoryBot (née FactoryGirl)
2.1k1.1m last 90 days2.1k1.1m -
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.
691714.6k last 90 days691714.6k -
-556.9k
-
579552.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.0k472.2k last 90 days1.0k472.2k -
214427.3k
-
77288.0k
-
594258.8k
-
41258.6k
-
918232.2k
-
49229.6k
-
41190.8k
-
1.8k160.8k
-
94150.6k
-
15150.1k
-
exvcr 0.17.1
HTTP request/response recording library for elixir, inspired by VCR.
746146.9k last 90 days746146.9k -
phoenix_test_playwright 0.16.0
Execute PhoenixTest cases in an actual browser via Playwright.
86111.3k last 90 days86111.3k -
assertions 0.22.0
Helpful functions with great error messages to help you write better tests.
151106.5k last 90 days151106.5k -
1998.5k
-
mix_test_interactive 5.1.0
Interactive test runner for mix test with watch mode.
13081.9k last 90 days13081.9k -
5051.8k
-
13441.9k
-
1640.5k
-
7936.5k
-
telemetry_test 0.1.2
Simplify and reduce test clutter when testing Telemetry events
734.2k last 90 days734.2k -
23931.7k
-
live_isolated_component 0.11.0
Simple library to test LV components live in isolation
4030.7k last 90 days4030.7k -
9929.6k
-
3129.5k
-
14028.1k
-
15425.9k
-
assert_value 0.10.5
ExUnit's assert on steroids that writes and updates tests for you
10825.2k last 90 days10825.2k -
4925.0k
-
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.
39224.6k last 90 days39224.6k -
3824.6k
-
rebar3_codecov 0.7.0
Rebar3 plugin converting .coverdata files to codecov compatible JSON
1223.7k last 90 days1223.7k -
2922.5k
-
7120.9k
-
hound 1.1.1
Webdriver library for integration testing and browser automation
1.4k20.6k last 90 days1.4k20.6k -
1219.7k
-
20518.6k
-
81317.6k
-
a11y_audit 0.5.0
Automated accessibility testing for Elixir web applications using axe-core
5817.6k last 90 days5817.6k -
117.4k
-
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.
7216.8k last 90 days7216.8k -
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.
9215.9k last 90 days9215.9k -
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.
4914.1k last 90 days4914.1k -
2114.0k
-
4513.8k
-
-13.1k
-
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.
17212.8k last 90 days17212.8k -
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.
12.4k last 90 days-12.4k -
212.1k
-
parameterized_test 0.6.2
A utility for defining eminently readable parameterized (or example-based) tests in ExUnit
6211.9k last 90 days6211.9k -
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.
1611.9k last 90 days1611.9k -
efx 1.0.1
A library to declaratively write testable effects for asynchronous testing
10011.7k last 90 days10011.7k -
2211.1k
-
-10.7k
-
310.5k
-
6410.2k
-
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.
1010.0k last 90 days1010.0k -
729.3k
-
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.
39.1k last 90 days39.1k -
muex 0.9.1
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.
238.9k last 90 days238.9k -
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.7k last 90 days138.7k -
08.1k
-
ex_meck 0.3.0
A mocking library particularly suitable for stateful property based testing.
28.1k last 90 days28.1k -
177.9k
-
1387.9k
-
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.
2197.8k last 90 days2197.8k -
27.6k
-
-7.4k
-
116.9k
-
http_mock_pal 1.0.0
A convenience library to spawn plug router with your application for testing purposes
26.5k last 90 days26.5k -
ex_unit_cluster 0.7.0
Spin up dynamic clusters in ExUnit tests with no special setup necessary.
46.5k last 90 days46.5k -
66.3k
-
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.
86.3k last 90 days86.3k -
546.2k
-
775.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 -
proper_contrib 0.3.2
A collection of goodies for the property-based testing framework PropEr
95.6k last 90 days95.6k -
05.6k
-
cucumber_test_release_automation 0.0.114
Dummy package to test release automation scripts
05.5k last 90 days05.5k -
moxable 0.2.0
A simplified method for configuring modules to be mockable with Mox in Elixir projects.
5.4k last 90 days-5.4k -
225.3k
-
-5.3k
-
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.2k last 90 days55.2k -
-5.1k
-
cucumber_messages 34.2.1
Elixir implementation of the cucumber messages protobuf schema
414.8k last 90 days414.8k -
994.7k
-
quixir 0.9.3
A simple property-based testing framework written in pure Elixir.
2664.6k last 90 days2664.6k -
power_assert 0.3.0
Power Assert in Elixir. Shows evaluation results each expression.
2154.4k last 90 days2154.4k -
264.1k
-
six 0.4.1
Zero-dependency Elixir coverage tool built for AI-assisted development
53.8k last 90 days53.8k -
13.7k
-
873.5k
-
03.4k
-
stubr 1.5.1
Stubr is a set of functions helping people to create stubs and spies in Elixir.
993.3k last 90 days993.3k -
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.
83.3k last 90 days83.3k -
173.3k
-
873.3k
-
13.2k
-
163.2k
-
383.2k
-
placebo 2.0.0
A mocking library for ExUnit inspired by RSpec and based on meck.
153.2k last 90 days153.2k -
smart_city_test 3.0.0
A library that contains test utilites used in the Smart City project
13.1k last 90 days13.1k -
83.0k
-
4023.0k
-
12.9k
-
62.9k