Is there any way of starting Julia with the packages installed by the test target of my package's Project.toml
? I don't want to run the tests, but I need the additional packages installed that the test environment installs...
You can use https://github.com/JuliaTesting/TestEnv.jl for that. You start your Julia session and then do TestEnv.activate("MyPackage")
.
Do I have to make TestEnv
a dependency of my package then to close the loop?
No, you can put it in your global environment-- that's usually a good place for "dev dependencies" like TestEnv. https://docs.julialang.org/en/v1/manual/code-loading/#Environments goes into stacked environments a bit more
Last updated: Nov 22 2024 at 04:41 UTC