mix test.interactive
is an interactive test runner for your ExUnit tests. It watches for changes in your code and tests and then re-runs your tests by calling mix test
under the hood. It also allows you to enter interactive commands that change the tests that are run by modifying the arguments that will be passed to mix test
.
For example:
- Use the
p <pattern>
command to run all test files the contain the pattern string - Use the
f
command to run only tests that failed the last time (runsmix test --failed
) - Use the
s
command to run only “stale” tests (runsmix test --stale
) - And many more…
Links: