mix-test.watch
mix-test.watch copied to clipboard
Leverage `--listen-on-stdin` to reuse the VM.
This means we can remove the work done in the hotrunner.
Bump -- was looking for this today
Hey @lpil
running mix test.watch --listen-on-stdin
results in the tests being run in a loop.
Is this intended behaviour?
Expectation: Tests only get run on file changes or when pressed enter.
Thank you!
This feature has not been implemented.
@lpil What was the reason the hot runner was removed, did it cause issues or stopped working with recent versions of Elixir/ExUnit? I'm looking for something like this functionality as my test cycles are way too slow with time taken to load the shell and VM on every execution.
It never worked unfortunately. We hit a bug with ExUnit that meant it wouldn't work. To fix it would require a large change to how ExUnit works and since it only effected this project they decided it wasn't worth the effort.
I'm looking for something like this functionality as my test cycles are way too slow with time taken to load the shell and VM on every execution.
I just found https://github.com/scottming/vscode-elixir-test-in-iex. TestInIEx runs tests in a persistent IEx
shell avoiding the VM startup time.