Post Julia 1.1 solution:
Setup:
- Create a
test/Project.toml
- in it all your test-time dependencies.
- Remove them and the other test time stuff from the main Project.toml
use
For testing ] test
will work as before.
For manually activating:
- Activate the main environment
- Do
push!(Base.LOAD_PATH, "./test")
, (assuming currently directory is in basedir of project) - 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