julia-vscode / TestItemRunner.jl

Run Julia test items
MIT License
67 stars 11 forks source link

Do not run tests on files not included (?) #60

Closed lmiq closed 3 weeks ago

lmiq commented 6 months ago

I may be doing something wrong, by in my project I have something like:

module MyPkg
    using TestItems
    include("somefile.jl")
end

Inside somefile.jl there are some tests defined by @testitem sets.

It seems that, if I comment the line that includes somefile.jl, the tests inside somefile.jl are stil checked up, and the tests break if there are syntax errors in that file.

Is this expected?

davidanthoff commented 3 weeks ago

Yes, test items are detected syntactically, they can just appear in any file anywhere.