I spent days trying to figure out how to import my test modules into a master test module so I could run them synchronously and I finally found my solution at the link below:
Importing test code in elixir unit test
My question is - WHY does this have to be a work-around? Why won't elixir allow me to directly alias or import my test modules into my test_suite.exs?
TLDR:
:elixirc_pathsvariable, defaulting to["lib"], to determine where to find files to be compiled.A standard way to do this, which is done by default by
mix phx.newif you work with Phoenix for instance, is to add the following to yourmix.exs:Then every module defined in a
.exfile (not.exs!) withintest/support/will be compiled when running your test suite.