Closed pdgonzalez872 closed 5 years ago
mix cmd
runs a separate shell command, isolated from the current terminal, so what you want to do is not possible without going into the app and starting it directly, sorry.
Ah, makes sense. Thanks @josevalim!
I did find a solution that works: use a tag
in the test you want to run. Eg: iex -S mix test --only tag_to_run
This solves my problem.
@josevalim an update: Seems like 1.9 has solved this problem! So, it is resolved :)
Thanks again!
"Resolved" here means that I was able to run the test I wanted and got the expected behavior since it pauses for IEx.pry
not that the fact you mentioned about cmd
is now incorrect.
iex -S mix test apps/first_app/test/my_test.exs
with a require IEx; IEx.pry
breakpoint. -> This works :)
❤️ Thanks again.
Hi!
I'm curious to know if the below is possible:
I want to run tests for a specific app inside an umbrella app and have the tests break("stop") for an
IEx.pry
call. Either I'm missing a command/don't know how to do it, or there may be a small bug somewhere. This feels like it should work so I decided to create the issue here instead of a the forum. I did search for existing issues, but did not find any.Here is my elixir version:
Here is an app that reproduces the behavior:
Here is what I have tried on my machine:
Expected behavior:
I'd like to use the
shim()
fn in B and have anIEx.pry
session there.Please let me know if there is anything else you'd like to know and I'll provide it. Thanks for all your help as always! ❤️