Skip to content
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

use testmodule outside of vscode #26

Open
CarloLucibello opened this issue Nov 30, 2024 · 1 comment
Open

use testmodule outside of vscode #26

CarloLucibello opened this issue Nov 30, 2024 · 1 comment

Comments

@CarloLucibello
Copy link

CarloLucibello commented Nov 30, 2024

Assuming I have a test_module.jl file containing

@testmodule TestModule begin
 ...
end

I would like to use it as a standard module outside of the vscode testing framework.
Unfortunately though, the following happens

julia> using TestItems

julia> include("test/test_module.jl")

julia> using .TestModule
ERROR: UndefVarError: `TestModule` not defined in `Main`
Suggestion: check for spelling errors or missing imports.
@CarloLucibello
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant