Releases: randycoulman/mix_test_interactive
v1.1.0
Fixed
- The
p(pattern) command now works properly in umbrella projects. Previously, it was unable to find any test files in order to filter the pattern and would therefore not run any tests. Now, in an umbrella project,mix test.interactivelooks for test files inapps/*/testby default, but still respects the:test_pathsconfig option used bymix test. (#48)
Documentation
- Fixed the spelling of Louis Pilfold's name in the README. Sorry, Louis! 🤦♂️ (#49)
v1.0.1
v1.0.0
🎉 Happy Birthday!
The following sections describe changes from mix-test.watch, which served as the basis of this project.
Added
-
Interactive mode allows dynamically filtering test files based on a substring pattern or switching to run only failed or stale tests without having to restart.
-
File-watching mode can be turned on and off, either by passing
--no-watchon the command line, or by using thewcommand to dynamically toggle watch mode on and off. When file-watching mode is on, tests will be run in response to file changes as withmix-test.watch. When off, tests must be run explicitly using theEnterkey or by using another command that changes the set of tests to be run.
Removed
-
It is no longer possible to customize the CLI executable. We always use
mix. Previously, this allowed the use ofiex -S mixinstead, but that doesn't work well with interactive mode. -
It is no longer possible to specify multiple tasks to run on file changes. This ability added complexity and the feature didn't work very well because it assumed that all tasks would take the exact same set of command-line arguments. It is still possible to specify a different task name than
test, butmix test.interactiveassumes that the custom task accepts the same command-line arguments asmix test.
Fixed
- On Windows,
mix test.interactiveruns the correctmixtask, including a custom task provided in the configuration, rather than always runningmix test. It also passes along other provided command-line arguments as well as those injected bymix test.interactive.