As far as I can tell, neotest-go currently lacks support to run individual nested subtests. Specificallly, it will fail to initiate the right sub-subtest when running the nearest test. I'm working on a PR to add support.
Root cause
The utils.get_prefix, which derives the test to pass to go test -run, assumes that subtests only go one level deep. I fixed that for now, but the results still aren't parsed correctly - I'll publish my PR once I fix that.
Summary
As far as I can tell,
neotest-go
currently lacks support to run individual nested subtests. Specificallly, it will fail to initiate the right sub-subtest when running the nearest test. I'm working on a PR to add support.Root cause
The
utils.get_prefix
, which derives the test to pass togo test -run
, assumes that subtests only go one level deep. I fixed that for now, but the results still aren't parsed correctly - I'll publish my PR once I fix that.Reproduction steps
Create a test file as such:
t.Run("World", ...
and runrequire("neotest").run.run()
, observe that the test runs correctly.t.Run("Heaven", ..
, and runrequire("neotest").run.run()
, observe that the test is skipped.