You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, I don't have a windows machine to test on.
Looking at the logs you attached, it seems like things are going as expected up until the test is executed, i. e. the build.zig file is recognized, the test is found in foo.zig, but the result file is empty:
[TRACE][2025-01-28 13:07:40] ...est-zig/init.lua:509 "Found a " "file" "named" "16256753171039001766" "in results dir"
[TRACE][2025-01-28 13:07:40] ...est-zig/init.lua:518 "Trying to open results file" "C:/Users/PCORBI~1/AppData/Local/Temp/nvim.0/npcv3A/2/16256753171039001766"
[TRACE][2025-01-28 13:07:40] ...est-zig/init.lua:527 "Decoded JSON" {}
Notice the "Decoded JSON" {} part showing an empty object.
Which leads me to believe, that the issue is probably in neotest_runner.zig file, which is responsible for running the tests and writing out the results into a temporary json file.
As I said, I was trying the plugin while discovering zig in same time. For now, I don't need it. We should let this ticket open if someone else have same issue or if I want to dig into later 👍
Describe the bug
neotest-zig
not working. It looks like he doesn't find my test.Steps To Reproduce
foo.zig
build.zig
Run neotest
Current behavior
Loading for few seconds :
Then stucks with this :
Expected behavior
Expect a green or red test result
Logs
neotest-zig.log
Environment
Additional context
zig setup seems working since if I dont provide a build.zig with a
test
step, I got a red test result with appropriate stdout.** I'm new to zig toolchain so I probably miss something **
zig build test
worksThe text was updated successfully, but these errors were encountered: