<div dir="ltr"><div><div>Thank you in advance for any help on this one.<br></div><div><br>Background:<br>I have a simple module in ./src/adb.erl<br></div>I have a simple common test suite in ./test/my_SUITE.erl<br></div>rebar.config has no added config for common test.<br><div><br></div><div>When
 I run the common test suite below with 'rebar3 ct --suite my_SUITE' i 
get a badmatch error indicating that the module has not been loaded. 
Why? Do I need to preload the modules in the same project as the common 
tests?<br><br></div><div>The error is below.<br></div><br>-module(my_SUITE).<br>-compile(export_all).<br><br>all() -><br>  [mod_exists].<br><br>mod_exists(_) -><br>%  {module,mnesia} = code:load_file(mnesia),<br>  {module,adb} = code:load_file(adb).<br><br>[root@localhost adb]# rebar3 ct --suite my_SUITE --config /opt/codecloud/adb/test/test.config <br>===> Verifying dependencies...<br>===> Running Common Test suites...<br><br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br>my_SUITE:mod_exists failed on line 9<br>Reason: {badmatch,{error,nofile}}<br>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -<br><br>%%% my_SUITE ==> mod_exists: FAILED<br>%%% my_SUITE ==> {failed,{{badmatch,{error,nofile}},<br>         [{my_SUITE,mod_exists,1,<br>                    [{file,"/opt/codecloud/adb/_build/test/extras/test/my_SUITE.erl"},<br>                     {line,9}]},<br>          {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1408}]},<br>          {test_server,run_test_case_eval1,6,<br>                       [{file,"test_server.erl"},{line,984}]},<br>          {test_server,run_test_case_eval,9,<br>                       [{file,"test_server.erl"},{line,926}]}]}}<br>Failed 1 tests. Passed 0 tests. <br>Results written to "/opt/codecloud/adb/_build/test/logs/index.html".<br>===> Failures occured running tests: 1</div>