I've been using SafeTestset.jl for testing, i.e., my runtests.jl file looks like
@safetestset "test1" include("test1.jl")
@safetestset "test2" include("test2.jl")
etc. test1.jl defines a variable, and test2.jl defines a function with the same name. This generates the message "Cannot define a function; it already has a value." However, @safetestset places the code in test1.jl and test2.jl in seperate modules, so there shouldn't be a name collision.
I've been using
SafeTestset.jlfor testing, i.e., myruntests.jlfile looks likeetc.
test1.jldefines a variable, andtest2.jldefines a function with the same name. This generates the message "Cannot define a function; it already has a value." However,@safetestsetplaces the code intest1.jlandtest2.jlin seperate modules, so there shouldn't be a name collision.