LoadError: UndefVarError: include not defined when using Pkg.test

Thanks kristoffer, it makes sense.
Now, if I want to define and test two different modules A, B in the same package, how do I do ? For instance, I would like something like

#src/A.jl
module A
export f
f(x)=x
end

module B
export g
g(x)=x+1
end

and

#test/runtests.jl
using Test
using A,B
@test f(0)==0
@test g(0)==1

I get a

LoadError: ArgumentError: Package aux not found in current path:

  • Run import Pkg; Pkg.add("B") to install the aux package.