View Source TestIex.Core (maxo_test_iex v0.1.2)
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
Loads or reloads testing helpers
examples
Examples
iex> TestIex.load_helper(“test/test_helper.exs”)
Starts the testing context.
examples
Examples
iex> TestIex.start()
Runs a single test, a test file, or multiple test files
example-run-a-single-test
Example: Run a single test
iex> TestIex.test("./path/test/file/test_file_test.exs", line_number)
example-run-a-single-test-file
Example: Run a single test file
iex> TestIex.test("./path/test/file/test_file_test.exs")
example-run-several-test-files
Example: Run several test files:
iex> TestIex.test(["./path/test/file/test_file_test.exs", "./path/test/file/test_file_2_test.exs"])