View Source Import Test Support files
Open your
test_helper.exs
, add the following code-snippet beforeExUnit.start()
:one_piece_commanded_path = Mix.Project.deps_paths()[:one_piece_commanded] Code.require_file "#{one_piece_commanded_path}/test/test_support/command_handler_case.ex", __DIR__ # Code.require_file "#{one_piece_commanded_path}/test/test_support/[other test support file name here].ex", __DIR__ # ... ExUnit.start()
Verify that such files exists.
Use the Test Support Modules in your test.