Activating test dependencies?

Post Julia 1.1 solution:

Setup:

  1. Create a test/Project.toml
  2. in it all your test-time dependencies.
  3. Remove them and the other test time stuff from the main Project.toml

use

For testing ] test will work as before.

For manually activating:

  1. Activate the main environment
  2. Do push!(Base.LOAD_PATH, "./test"), (assuming currently directory is in basedir of project)
  3. You should now be able to using any package from either Project.toml

This feels like a gross hack to me.
There has been issues about creating nicer ways to activate stacked environments.
Maybe @StefanKarpinski or @kristoffer.carlsson have more thought in this direction

4 Likes