# Flexi

A flexible Elixir Mix test runner.

## Usage

Start your IEx console in test mode:
$ MIX_ENV=test iex -S mix

First load / execute all test modules with an empty query:

# grepping based on file names
iex> Flexi.filematch("")

# grepping based on test names
iex> Flexi.namematch("")

# grepping based on test module names
iex> Flexi.modulematch("")

## Requirements:

- Elixir 1.7-dev after [Introducing :only_test_ids as options for ExUnit](

## 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.1.0", only: [:dev, :test]}

Documentation can be generated with [ExDoc](
and published on [HexDocs]( Once published, the docs can
be found at [](

## Future ideas:
  - combining different types of filters, like module + name
  - debug mode / more logging (?)
  - remove the Cortex.Reloader dependency
  - make Flexi part of [Cortex](, so it would re-run tests that match the query,
    because the current implementation for `Cortex.focus` is not useful at all :(