Stream: helpdesk (published)

Topic: Starting julia with test target


view this post on Zulip Richard Reeve (Aug 31 2021 at 23:05):

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...

view this post on Zulip Eric Hanson (Aug 31 2021 at 23:16):

You can use https://github.com/JuliaTesting/TestEnv.jl for that. You start your Julia session and then do TestEnv.activate("MyPackage").

view this post on Zulip Richard Reeve (Aug 31 2021 at 23:28):

Do I have to make TestEnv a dependency of my package then to close the loop?

view this post on Zulip Eric Hanson (Aug 31 2021 at 23:35):

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 06 2024 at 04:40 UTC