Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 1.28 KB

README.md

File metadata and controls

64 lines (40 loc) · 1.28 KB

Flexi

A flexible Elixir Mix test runner. (>= Elixir 1.7)

Usage

Start your IEx console in test mode:

$ MIX_ENV=test iex -S mix

Now we can start running tests depending on our desires. First run with a fresh Erlang VM will run all tests to load the modules into memory, this happens implicitly.

Grep for file names:

iex> Flexi.filematch("")

Grep for test names:

iex> Flexi.namematch("")

Grep for test module names:

iex> Flexi.modulematch("")

Show current filters for ExUnit (convenience function):

iex> Flexi.config()

Requirements:

Installation

If available in Hex, the package can be installed by adding flexi to your list of dependencies in mix.exs:

def deps do
  [
    {:flexi, "~> 0.4", only: [:dev, :test]}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/flexi.