So when running ExUnit with the stale option, why is this line ExUnit.Server.modules_loaded()
called?
I think this line Kernel.ParallelCompiler.require(test_files, parallel_require_callbacks)
is needed to require the ex_unit test files to be able to run in parallel.
I can follow the source code tracing of ExUnit.Server.modules_loaded()
in the ExUnit.Server
module, but I'm a bit unclear as to the high level purpose of what the take_modules
function call is doing and why it is doing what it does? It just seems to be updating the GenServer
state and doing some kind of reply...is the purpose simply to ensure the modules are loaded and store the state of that "loading" so a programmer can "peek" at that state?