mix test.interactive - Interactive test runner for ExUnit

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 (runs mix test --failed)
  • Use the s command to run only “stale” tests (runs mix test --stale)
  • And many more…

Links:

8 Likes