test_iex v0.1.0 TestIex

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.

Link to this section Summary

Functions

Loads or reloads testing helpers

Starts the testing context.

Runs a single test, a test file, or multiple test files

Link to this section Functions

Link to this function

load_helper(file_name)

Loads or reloads testing helpers

Examples

iex> TestIex.load_helper(test/test_helper.exs)
Link to this function

start_testing()

Starts the testing context.

Examples

iex> TestIex.start_testing()
Link to this function

test(path, line \\ nil)

Runs a single test, a test file, or multiple test files

Example: Run a single test

iex> TestIex.test("./path/test/file/test_file_test.exs", line_number)

Example: Run a single test file

iex> TestIex.test("./path/test/file/test_file_test.exs")

Example: Run several test files:

iex> TestIex.test(["./path/test/file/test_file_test.exs", "./path/test/file/test_file_2_test.exs"])