To use IEx.pry the mix tests have to be run via iex using

iex -S mix test