How to install packages which are needed only for development

It’s one way, I usually use that myself

Yea, well, if those are in the LOAD_PATH (see below).

No.

It’s a temporary environment that is cleaned up when tests are done.

Stacking of LOAD_PATH is documenter here: Environment Variables · The Julia Language.

Sure, seems easiest.

Instead of moving things you can set DEPOT_PATH to some test-directory, e.g. by setting JULIA_DEPOT_PATH, see Environment Variables · The Julia Language

3 Likes