nvim-neotest / neotest-go

MIT License
125 stars 43 forks source link

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

Open primalmotion opened 1 year ago

primalmotion commented 1 year ago

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.

sergii4 commented 1 year ago

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

primalmotion commented 1 year ago

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

sergii4 commented 1 year ago

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