neotest-go icon indicating copy to clipboard operation
neotest-go copied to clipboard

feature: ability to find the test associated to an actual function

Open primalmotion opened this issue 1 year ago • 3 comments

Hi,

it would be handy to support calling run() from an actual Function implementation, and let neotest-go find its test, so we can run the test without having to find the TestFunction first.

primalmotion avatar Dec 08 '22 21:12 primalmotion

I think it is on plugin, neotest itself, than on an adapter, because plugin provides and interface, adapter just follows it

sergii4 avatar Dec 09 '22 09:12 sergii4

Couldn't the "nearest" method be used? In a sense, that's the nearest test

primalmotion avatar Dec 10 '22 18:12 primalmotion

I believe those mechanics are under neotest, because it is not specific to Go, nearest test is common thing for any language and respectively should be covered by neotest, not neotest-go

sergii4 avatar Dec 14 '22 16:12 sergii4