TestItemRunner.jl icon indicating copy to clipboard operation
TestItemRunner.jl copied to clipboard

Can't run the tests from VS Code

Open coderguy57 opened this issue 2 years ago • 1 comments

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

coderguy57 avatar Oct 19 '23 09:10 coderguy57

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

kbarros avatar Mar 19 '24 20:03 kbarros

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

davidanthoff avatar Jun 06 '24 23:06 davidanthoff

Closing as this would need more info to diagnose.

davidanthoff avatar Jul 06 '24 19:07 davidanthoff