Catalyst.jl icon indicating copy to clipboard operation
Catalyst.jl copied to clipboard

Separate /test/Project.toml environment file

Open TorkelE opened this issue 2 years ago • 4 comments

If I get it right, according to https://pkgdocs.julialang.org/v1/creating-packages/#Test-specific-dependencies-in-Julia-1.2-and-above the current dogma is to have one Project.toml file for the package in the main folder, and then a separate Project.toml file in /test for which the tests run. Currently, we only have one in the main folder, which has a section [extras] to handle test packages.

Would it make sense to change to the set up with two different ones? I think one advantage would be that it is easier to activate the test environment to run the tests with the sam environment as CI. (currently I activate the main one, but that does not provide the packages unique for the tests)

TorkelE avatar Jan 17 '23 19:01 TorkelE

(If people think this make sense I am happy to do it, however, wanted to check since I think others might know this stuff better than me, and there might be some reason I am unaware of why things are set up as they are)

TorkelE avatar Jan 17 '23 19:01 TorkelE

Sounds good to me! Our current setup is just historical, based on the older testing style. I agree it would be nice to have a self-contained testing environment one can manually activate.

isaacsas avatar Jan 17 '23 20:01 isaacsas

Great, will set it up after the updated DSL syntax thing is done.

TorkelE avatar Jan 17 '23 20:01 TorkelE

Julia 1.10 will probably have functionality making this simpler. So we will hold this off until then: https://discourse.julialang.org/t/link-project-toml-files-or-make-test-prokect-toml-depend-on-main-package-one/93223/3

TorkelE avatar Jan 19 '23 22:01 TorkelE