Skip to content

use testmodule outside of vscode #26

@CarloLucibello

Description

@CarloLucibello

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions