Project.toml extras

There are two different ways to specify test-only dependencies (see the Pkg docs):

  1. Add the test-only dependencies to the [extras] section of your Project.toml file and use a test target.
  2. Add the test-only dependencies to the [deps] section of your test/Project.toml file. 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_extrasFunction
test_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.

source