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
-
8401.7m
-
9511.5m
-
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.3m last 90 days1131.3m -
ex_machina 2.8.2
A factory library by the creators of FactoryBot (née FactoryGirl)
2.1k1.2m last 90 days2.1k1.2m -
214845.6k
-
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.
691779.1k last 90 days691779.1k -
580689.3k
-
-587.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.0k533.4k last 90 days1.0k533.4k -
918376.3k
-
41365.1k
-
77354.6k
-
50336.2k
-
598281.3k
-
1.8k223.9k
-
15208.0k
-
41203.4k
-
exvcr 0.17.1
HTTP request/response recording library for elixir, inspired by VCR.
746155.8k last 90 days746155.8k -
phoenix_test_playwright 0.19.0
Execute PhoenixTest cases in an actual browser via Playwright.
89141.4k last 90 days89141.4k -
95138.3k
-
23137.7k
-
assertions 0.22.0
Helpful functions with great error messages to help you write better tests.
151105.7k last 90 days151105.7k -
mix_test_interactive 6.0.0
Interactive test runner for mix test with watch mode.
13091.4k last 90 days13091.4k -
1660.4k
-
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.
39351.7k last 90 days39351.7k -
15446.9k
-
7946.3k
-
telemetry_test 0.1.2
Simplify and reduce test clutter when testing Telemetry events
743.3k last 90 days743.3k -
13443.1k
-
14042.3k
-
5041.9k
-
4640.2k
-
23938.8k
-
3035.7k
-
9932.5k
-
rebar3_codecov 0.7.0
Rebar3 plugin converting .coverdata files to codecov compatible JSON
1231.4k last 90 days1231.4k -
live_isolated_component 0.11.0
Simple library to test LV components live in isolation
4031.0k last 90 days4031.0k -
3829.7k
-
20728.3k
-
4927.5k
-
2925.0k
-
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.
4923.0k last 90 days4923.0k -
1222.5k
-
assert_value 0.10.5
ExUnit's assert on steroids that writes and updates tests for you
10822.2k last 90 days10822.2k -
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.
7221.3k last 90 days7221.3k -
a11y_audit 0.5.0
Automated accessibility testing for Elixir web applications using axe-core
5920.6k last 90 days5920.6k -
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.
9217.5k last 90 days9217.5k -
81317.4k
-
7117.4k
-
117.3k
-
hound 1.1.1
Webdriver library for integration testing and browser automation
1.4k17.3k last 90 days1.4k17.3k -
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.
1715.9k last 90 days1715.9k -
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.
3315.9k last 90 days3315.9k -
6415.7k
-
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.
17315.3k last 90 days17315.3k -
215.2k
-
-15.0k
-
2114.8k
-
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.
1014.6k last 90 days1014.6k -
parameterized_test 0.6.2
A utility for defining eminently readable parameterized (or example-based) tests in ExUnit
6214.2k last 90 days6214.2k -
313.5k
-
211.9k
-
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.
811.4k last 90 days811.4k -
2511.1k
-
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.1k last 90 days-11.1k -
efx 1.0.1
A library to declaratively write testable effects for asynchronous testing
10010.9k last 90 days10010.9k -
-10.8k
-
1110.0k
-
snabbkaffex 0.1.0
A thin Elixir wrapper around the Erlang snabbkaffe trace-based testing library.
09.9k last 90 days09.9k -
229.5k
-
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.4k last 90 days2209.4k -
729.3k
-
ex_meck 0.3.0
A mocking library particularly suitable for stateful property based testing.
28.9k last 90 days28.9k -
28.8k
-
-8.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.3k last 90 days138.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.
38.3k last 90 days38.3k -
1388.2k
-
08.0k
-
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.
57.7k last 90 days57.7k -
777.1k
-
-7.0k
-
ex_unit_cluster 0.7.0
Spin up dynamic clusters in ExUnit tests with no special setup necessary.
46.5k last 90 days46.5k -
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 -
66.3k
-
176.3k
-
cucumber_test_release_automation 0.0.145
Dummy package to test release automation scripts
06.0k last 90 days06.0k -
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.
86.0k last 90 days86.0k -
moxable 0.2.0
A simplified method for configuring modules to be mockable with Mox in Elixir projects.
5.9k last 90 days-5.9k -
proper_contrib 0.3.2
A collection of goodies for the property-based testing framework PropEr
95.4k last 90 days95.4k -
545.3k
-
05.2k
-
quixir 0.9.3
A simple property-based testing framework written in pure Elixir.
2665.2k last 90 days2665.2k -
14.8k
-
six 0.4.2
Zero-dependency Elixir coverage tool built for AI-assisted development
74.6k last 90 days74.6k -
cucumber_messages 34.2.1
Elixir implementation of the cucumber messages protobuf schema
414.6k last 90 days414.6k -
874.4k
-
994.3k
-
stubr 1.5.1
Stubr is a set of functions helping people to create stubs and spies in Elixir.
994.3k last 90 days994.3k -
-4.3k
-
04.2k
-
fab_internet 1.0.0
Fab.Internet is an Elixir library for generating random internet related data
04.2k last 90 days04.2k -
264.2k
-
174.2k
-
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.
364.1k last 90 days364.1k -
64.0k
-
13.8k
-
power_assert 0.3.0
Power Assert in Elixir. Shows evaluation results each expression.
2153.8k last 90 days2153.8k -
metamon 0.12.0
Property-based testing and metamorphic testing combinator library for Gleam
73.7k last 90 days73.7k -
paper_tiger 1.5.1
A stateful mock Stripe server for testing Elixir applications
133.7k last 90 days133.7k -
73.5k
-
383.5k
-
83.4k