How to avoid name conflicts in MyPackage/runtests.jl

I usually wrap everything inside individual files in a module. Usually it have a name of a file plus word Test. You can factor out common pieces and include them into individual files. So, it looks like that

#test1.jl
module TestTest1
include("testcommon.jl")

#actual tests

end #module

It’s more or less the same as SafeTestsets.jl just more explicit.

1 Like