julia-vscode / TestItemRunner.jl

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

Can't run the tests from VS Code #58

Open coderguy57 opened 8 months ago

coderguy57 commented 8 months ago

I can run it from the terminal, but whenever I run it from the VS Code I get the following error:

"Unable to identify a Julia package for this test item."

This is the code I run

using TestItems, TestItemRunner

@testitem "Test" begin
    @test 1 + 1 == 2
end

@run_package_tests
kbarros commented 3 months ago

Perhaps its unrelated, but I was seeing a lot of confusing behaviors when the Julia env: toggle at the bottom of the VSCode window was misconfigured. Worth a check? https://github.com/julia-vscode/TestItemRunner.jl/issues/67

davidanthoff commented 3 weeks ago

Test items only work inside packages. Is that code inside a Julia package?