My test pane (with the chemistry beaker icon) in VS Code won’t run tests anymore, as of this week. When I click on the “run” button, for all of the tests together or just a single test, it seems to just hang forever.
Running tests in a normal REPL by using ] test
works fine, but is of course much slower and doesn’t allow running a single test by point-and-click.
My tests are @testitem
style, so they look similar to this:
@testitem "fill_missing!()" begin
using DataFrames
df = DataFrame(; A = [1, 2, missing, 4], B = [missing, 2, 3, 4])
@test_logs (:warn, r"Filling in 1 A value") begin
MyPackage.fill_missing!(df, :A)
end
@test df.A == [1, 2, 0.0, 4]
@test_logs (:warn, r"Filling in 1 B value") begin
MyPackage.fill_missing!(df, :B; value = 1.0)
end
@test df.B == [1.0, 2, 3, 4]
@test_logs (:warn, r"No C column found in my DF; using default") begin
MyPackage.fill_missing!(df, :C; value = 2.0, name = "my DF")
end
@test df.C == [2.0, 2.0, 2.0, 2.0]
end
In trying to diagnose what’s going wrong, I can’t seem to find much info. In the “output” pane, I see the following for the Test Item Controller:
[ Info: Starting test item controller on Julia 1.11.5
Activating project at `~/.vscode/extensions/julialang.language-julia-1.140.2/scripts/environments/testitemcontroller/v1.11`
Precompiling TestItemControllers...
1632.5 ms ✓ TestItemControllers
1 dependency successfully precompiled in 2 seconds. 5 already precompiled.
Nothing in any of the other “output” selections seems to have anything relevant.
Is there some way to invoke the Testing pane action manually, e.g. in a vanilla REPL? Or to convince VS Code to run with debug logging turned on, or something? In general, any suggestions for how to get more information about what might be going wrong?