mix-test.watch icon indicating copy to clipboard operation
mix-test.watch copied to clipboard

Leverage `--listen-on-stdin` to reuse the VM.

Open lpil opened this issue 7 years ago • 6 comments

This means we can remove the work done in the hotrunner.

lpil avatar Jan 29 '17 14:01 lpil

Bump -- was looking for this today

sitch avatar Sep 05 '19 22:09 sitch

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!

christophweegen avatar Feb 08 '22 00:02 christophweegen

This feature has not been implemented.

lpil avatar Feb 08 '22 08:02 lpil

@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.

jeremyjh avatar Mar 02 '23 16:03 jeremyjh

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.

lpil avatar Mar 02 '23 17:03 lpil

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.

thetamind avatar Mar 22 '23 17:03 thetamind