I found the problem. I had a separate Project.toml file in the test directory so the test dependencies would be separate from those of the main project. This apparently confused the VSCode test extensions. Once I removed the Project.toml file it worked fine.
I must be doing something simple incorrectly. I have the same error.
Ubuntu 24.04.2 LTS
julia version 1.11.6
VS Code
Version: 1.103.1
Commit: 360a4e4fd251bfce169a4ddf857c7d25d1ad40da
Date: 2025-08-12T16:25:40.542Z
Electron: 37.2.3
ElectronBuildId: 12035395
Chromium: 138.0.7204.100
Node.js: 22.17.0
V8: 13.8.500258-electron.0
OS: Linux x64 6.8.0-71-generic
Julia VS Code Extension
Version: 1.149.2
module MyPackage
using TestItems
export foo
foo(x) = x
@testitem “First tests” begin
x = foo(“bar”)
@test length(x)==3
@test x == "bar"
end
end
An error occurred attempting to run tests: Error: Pending response rejected since connection got disposed