TestItemRunner.jl
TestItemRunner.jl copied to clipboard
Can't run the tests from VS Code
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
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
Test items only work inside packages. Is that code inside a Julia package?
Closing as this would need more info to diagnose.