Hacking on hex dependencies

Tonight, I was trying to debug a bug I was running into with mongodb_ecto (it's a great project, btw). I opened up deps > mongodb_ecto > lib, added some log statements, and then compiled. I ran the tests but the log statements weren't sent to the console. The solution? The deps need to be compiled in the test environment:

MIX_ENV=test mix deps.compile mongodb_ecto  
mix test test/controller/course_controller_test.exs

Scott Messinger

Read more posts by this author.