How to run ExUnit tests within IEx

前端 未结 3 1227
轻奢々
轻奢々 2021-02-20 00:49

I\'m trying to launch IEx.pry within a test. However I cannot get to run the tests within an iex session. Note that I\'m not using mix.

ExUnit.start         


        
3条回答
  •  不要未来只要你来
    2021-02-20 01:14

    According to the ExUnit documentation, ExUnit.run/0 should only be used if you don't want to autostart your tests when you call ExUnit.start/1.

    You always have to call ExUnit.start() which would automatically run all the tests unless you pass autorun: false.

提交回复
热议问题