Testing

Testing frameworks, mocking libraries, and test utilities beyond ExUnit. Packages among the 3,000 most downloaded in the past 90 days.

126 packages
  • meck 1.0.0

    A mocking framework for Erlang

    822
    2.3m last 90 days
  • mox 1.2.0

    Mocks and explicit contracts for Elixir

    1.4k
    2.1m last 90 days
  • Coverage report tool for Elixir with coveralls.io integration.

    857
    2.0m last 90 days
  • A factory library by the creators of FactoryBot (née FactoryGirl)

    2.0k
    1.5m last 90 days
  • 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.

    111
    1.3m last 90 days
  • 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.

    687
    1.2m last 90 days
  • Automatically run tests when files change

    950
    971.1k last 90 days
  • Data generation and property-based testing for Elixir

    912
    814.0k last 90 days
  • 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.

    988
    613.7k last 90 days
  • mimic 2.0.1

    Mocks for Elixir functions

    525
    582.7k last 90 days
  • hammox 0.7.1

    Automated contract testing for functions and mocks.

    584
    448.3k last 90 days
  • Run PropEr test suites

    40
    410.3k last 90 days
  • Build tool & plugin for generating Cobertura XML reports

    76
    380.2k last 90 days
  • patch 0.16.0

    Ergonomic Mocking for Elixir Unit Testing

    208
    315.1k last 90 days
  • Coveralls for Erlang

    41
    313.9k last 90 days
  • proper 1.5.0

    A QuickCheck-inspired property-based testing tool for Erlang

    897
    291.0k last 90 days
  • exvcr 0.17.1

    HTTP request/response recording library for elixir, inspired by VCR.

    742
    244.4k last 90 days
  • mockery 2.3.3

    Simple mocking library for asynchronous testing.

    94
    208.7k last 90 days
  • wallaby 0.30.10

    Concurrent feature tests for elixir

    1.8k
    190.0k last 90 days
  • Low-level WebDriver client for Elixir.

    15
    186.6k last 90 days
  • Helpful functions with great error messages to help you write better tests.

    148
    171.1k last 90 days
  • Gleam bindings to Erlang's EUnit test framework

    33
    118.0k last 90 days
  • Simple macro for parameterized testing

    29
    114.5k last 90 days
  • machete 0.3.11

    Literate test matchers for ExUnit

    72
    100.5k last 90 days
  • https://github.com/edgurgel/httparrot

    86
    91.6k last 90 days
  • ExUnit's assert on steroids that writes and updates tests for you

    108
    77.3k last 90 days
  • Show status notifications for ExUnit test runs

    133
    76.0k last 90 days
  • Interactive test runner for mix test with watch mode.

    116
    67.9k last 90 days
  • A utility for defining eminently readable parameterized (or example-based) tests in ExUnit

    59
    56.7k last 90 days
  • Simplify and reduce test clutter when testing Telemetry events

    6
    56.0k last 90 days
  • Simple library to test LV components live in isolation

    42
    54.4k last 90 days
  • TestParrot helps in stubbing unit tests for pure functions

    0
    44.1k last 90 days
  • PropCheck provides property based testing and is an Elixir layer around PropEr. It is also inspired by Quviq's QuickCheck Elixir library.

    387
    37.1k last 90 days
  • MixTestObserver is a semiauto test runner.

    0
    33.4k last 90 days
  • private 0.1.2

    Make private functions public if Mix.env is :test

    48
    32.3k last 90 days
  • hound 1.1.1

    Webdriver library for integration testing and browser automation

    1.4k
    31.1k last 90 days
  • lcov_ex 0.3.4

    Lcov test coverage file generator.

    31
    31.0k last 90 days
  • espec 1.10.0

    BDD testing framework for Elixir inspired by RSpec.

    812
    28.5k last 90 days
  • Easy local cluster creation to aid in unit testing

    233
    27.6k last 90 days
  • Rebar3 plugin converting .coverdata files to codecov compatible JSON

    12
    26.4k last 90 days
  • Execute PhoenixTest cases in an actual browser via Playwright.

    52
    25.9k last 90 days
  • A few sentences (a paragraph) describing the project.

    11
    24.8k last 90 days
  • Covertool Build Plugin for Cobertura XML reports

    76
    24.1k last 90 days
  • 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.

    93
    22.9k last 90 days
  • Mock third-party services in ExUnit

    87
    22.6k last 90 days
  • Better output for eunit suites

    71
    20.4k last 90 days
  • 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.

    3
    20.0k last 90 days
  • Generate a generic test execution file for SonarQube

    0
    18.2k last 90 days
  • gherkin 2.0.0

    Gherkin file parser for Elixir

    16
    17.4k last 90 days
  • snapshy 0.4.0

    A testing utility for running snapshot tests

    21
    17.2k last 90 days
  • Common Test hooks for more readable logs

    49
    17.1k last 90 days
  • mneme 0.10.2

    Snapshot testing tool using familiar assertions

    134
    15.2k last 90 days
  • An ExUnit formatter to visualize test execution

    37
    15.0k last 90 days
  • Set up stateful doctests

    0
    14.7k last 90 days
  • Library for stubbing and setting expectations on HTTP requests in Erlang

    82
    13.5k last 90 days
  • ESpec for Phoenix web framework.

    138
    13.3k last 90 days
  • unite 0.4.3

    Pretty EUnit test formatters

    72
    13.0k last 90 days
  • Functions to wait for some condition in tests

    2
    13.0k last 90 days
  • 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.

    10
    12.7k last 90 days
  • ex_meck 0.3.0

    A mocking library particularly suitable for stateful property based testing.

    2
    12.6k last 90 days
  • Power Assert in Elixir. Shows evaluation results each expression.

    214
    12.6k last 90 days
  • efx 1.0.0

    A library to declaratively write testable effects for asynchronous testing

    95
    11.7k last 90 days
  • cabbage 0.4.1

    Story BDD tool for executing elixir in ExUnit

    151
    11.7k last 90 days
  • With FakeServer you can create individual HTTP servers for each test case, allowing external requests to be tested without the need for mocks.

    72
    11.0k last 90 days
  • Simple trace-based testing framework

    38
    10.9k last 90 days
  • ltest 0.13.11

    A Testing Framework for LFE

    37
    10.5k last 90 days
  • 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.

    49
    10.3k last 90 days
  • Concurrent mocks for gRPC Elixir

    3
    10.1k last 90 days
  • ResponseSnapshot is a testing tool for Elixir that captures the output of responses and ensures that they do not change in between test runs.

    36
    9.2k last 90 days
  • Publicist allows developers to test private (defp) functions

    -
    9.1k last 90 days
  • Lightweight server-side integration test functions for Phoenix. Optimized for Elixir Pipes and the existing Phoenix.ConnTest framework to emphasize both speed and readability.

    219
    8.6k last 90 days
  • The library outputs test results to the console, which helps speed up the red-green test correction cycle (inspired by rspec)

    11
    8.2k last 90 days
  • A convenience library to spawn plug router with your application for testing purposes

    2
    8.1k last 90 days
  • birdie 1.3.2

    🐦‍⬛ Snapshot testing in Gleam

    126
    7.7k last 90 days
  • A mock logging backend for Elixir unit tests

    0
    7.5k last 90 days
  • walkman 0.3.3

    Isolate your tests from the world with Walkman

    54
    7.2k last 90 days
  • repatch 1.6.0

    Tool for mocking in tests

    55
    7.1k last 90 days
  • ExUnit assert helpers for testing rendered HTML.

    22
    6.2k last 90 days
  • Erlang port of Hamcrest

    3
    6.1k last 90 days
  • 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.

    131
    6.1k last 90 days
  • triq 1.3.0

    Triq (Term Reductive Invariant Questant) QuickCheck

    -
    6.0k last 90 days
  • Automated accessibility testing for Elixir web applications using axe-core

    55
    5.9k last 90 days
  • Helpers and assertions extracted from espec_phoenix

    3
    5.6k last 90 days
  • HTMLTestHelpers provides function helpers for unit testing allowing easy assertions for HTML elements data queried by data-testid attribute.

    8
    5.2k last 90 days
  • Registry to help create sandboxes for testing

    6
    4.9k last 90 days
  • Test factories for Ash resources.

    -
    4.9k last 90 days
  • Story BDD tool based on cucumber. Parses Gherkin formatted feature files and executes them as tests.

    229
    4.9k last 90 days
  • bless 1.4.0

    A mix task for running test suites

    1
    4.8k last 90 days
  • moxable 0.1.0

    A simplified method for configuring modules to be mockable with Mox in Elixir projects.

    -
    4.7k last 90 days
  • A utility library for NLdoc providing various test helpers.

    -
    4.5k last 90 days
  • qcheck 1.0.0

    QuickCheck-inspired property testing with integrated shrinking

    33
    4.4k last 90 days
  • tapex 0.1.1

    Tapex is a TAP (Test Anything Protocol) formatter for ExUnit.

    25
    4.4k last 90 days
  • ExUnit assertions for Ecto schemas

    5
    4.2k last 90 days
  • Common Tests Group Summary Hook

    0
    4.1k last 90 days
  • quixir 0.9.3

    A simple property-based testing framework written in pure Elixir.

    270
    4.1k last 90 days
  • A mix task to run eunit tests, works for umbrella projects

    17
    3.7k last 90 days
  • A collection of factories and helpers for testing ecto schemas

    2
    3.6k last 90 days
  • Macros to support assertions/refutations that might not be correct immediately but will eventually become so due to, say, eventual consistency.

    8
    3.5k last 90 days
  • placebo 2.0.0

    A mocking library for ExUnit inspired by RSpec and based on meck.

    15
    3.5k last 90 days
  • Plug integration for Tapper.

    -
    3.5k last 90 days
  • Spin up dynamic clusters in ExUnit tests with no special setup necessary.

    1
    3.4k last 90 days
  • klotho 0.1.2

    Opinionated library for testing timer-based Elixir code

    15
    3.3k last 90 days
  • chaps 1.0.1

    100% code coverage testing tool forked from parroty/excoveralls

    4
    3.3k last 90 days
  • mox_env 1.1.0

    It's your application config but simply mocked with NimbleOwnership like Mox

    8
    3.2k last 90 days
  • A utility for defining eminently readable example-based tests in ExUnit

    59
    3.1k last 90 days
  • blend 0.5.0

    Test your package against different versions of its dependencies

    85
    3.1k last 90 days
  • A testing framework to help you shoot for the stars

    35
    3.0k last 90 days
  • Elixir implementation of the cucumber messages protobuf schema

    30
    3.0k last 90 days
  • Time machine clock to simplify time testing

    5
    2.8k last 90 days
  • Elixir Gherkin parser.

    249
    2.7k last 90 days
  • lasso 0.1.4

    Simulate remote HTTP services with local Bandit servers.

    11
    2.7k last 90 days
  • WCAG validator for the NLdoc specification.

    -
    2.6k last 90 days
  • A library for mocking Elixir protocols

    6
    2.6k last 90 days
  • stubr 1.5.1

    Stubr is a set of functions helping people to create stubs and spies in Elixir.

    99
    2.5k last 90 days
  • zest 0.1.2

    A fresh approach to testing

    1
    2.5k last 90 days
  • checkov 1.0.0

    A parameterized testing library attempting to emulate the data driven testing of the [Spock Framework](http://spockframework.org/).

    7
    2.4k last 90 days
  • FakerElixir generates fake data for you.

    148
    2.3k last 90 days
  • A simple Elixir package to elegantly mock module functions within (asynchronous) ExUnit tests using Erlang's :meck library

    55
    2.2k last 90 days
  • Fake Membrane sinks that drop incoming data

    1
    2.2k last 90 days
  • Behaviour driven development for ExUnit with product management friendly readable scenarios.

    -
    2.0k last 90 days
  • Phoenix and LiveView visual regression testing tool for the GetSnappy platform

    0
    2.0k last 90 days
  • A wrapper around Bypass. Double Bypass makes configuring and initializing Bypass easy. It also removes redundant test assertion code, and ecourages testing external requests in a self documenting manner.

    15
    2.0k last 90 days
  • A rebar3 plugin to run tests automatically when there are changes.

    11
    2.0k last 90 days
  • An extension for ExUnit for simplifying tests against a clustered application

    64
    2.0k last 90 days
  • ex_spec 2.0.1

    BDD-like syntax for ExUnit

    99
    1.8k last 90 days
  • factori 0.16.0

    Test factories generated from database schema

    18
    1.7k last 90 days