Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
primalmotion opened this issue Dec 8, 2022 · 3 comments
Open

Comments

@primalmotion
Copy link

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
Copy link
Collaborator

sergii4 commented Dec 9, 2022

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

@primalmotion
Copy link
Author

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

@sergii4
Copy link
Collaborator

sergii4 commented Dec 14, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants