Last active
May 22, 2024 10:06
-
-
Save josevalim/a5e747c90a72e40a4b52062ea6919877 to your computer and use it in GitHub Desktop.
A 1LOC bash script for re-running tests whenever a lib/ or test/ file changes keeping the same VM instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You will need fswatch installed (available in homebrew and friends) | |
# The command below will run tests and wait until fswatch writes something. | |
# The --stale flag will only run stale entries, it requires Elixir v1.3. | |
fswatch lib/ test/ | mix test --stale --listen-on-stdin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
--listen-on-stdin
doesn't seem to be supported, my take on this: