Project.toml extras
There are two different ways to specify test-only dependencies (see the Pkg docs):
- Add the test-only dependencies to the
[extras]section of yourProject.tomlfile and use a test target. - Add the test-only dependencies to the
[deps]section of yourtest/Project.tomlfile. This is only available in Julia 1.2 and later.
This test checks checks that, in case you use both methods, the set of test-only dependencies is the same in both ways.
Test function
Aqua.test_project_extras — Functiontest_project_extras(package::Union{Module, PkgId})
test_project_extras(packages::Vector{Union{Module, PkgId}})Check that test target of the root project and test project (test/Project.toml) are consistent. This is useful for supporting Julia < 1.2 while recording test-only dependency compatibility in test/Project.toml.