-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Statically parse, rather than run, test files to extract @testitem
s
#41
Comments
One possible policy that i think could be good for everyone would be any file that contains a (But this aspect is much less relevant than the main thrust of what you're describing here, and i'd rather start with what you proposed 👍) |
@nickrobinson251 oh haha sorry i forgot we'd already detailed these steps. sorry i spammed it on that slack thread! |
i'm still gonna add you suggestion here 😁
|
we didn't end up doing this yet, did we? Just trying to remember and clean up issues |
In #78 we switched to first iterating over the parsed |
We could change the
@testitem
scanning from callinginclude
to instead parsing the files (e.g.Meta.parse(read(file, String))
) then walk the AST looking for top-level@testitem
s that we theneval
.This would have a few potential benefits:
@testitem
s (/@testsetup
s)@warn
on@testitem
s that were not in_test.jl
files_test.jl
files that's not a@testitem
(or@testsetup
)_test.jl
suffix, since we could scan any file and justeval
the@testitem
This is also more similar to what the VS Code extension does (#18)
The text was updated successfully, but these errors were encountered: