-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: testify test suite support #58
Conversation
26f071e
to
5abb5e8
Compare
d601345
to
6f7caf9
Compare
1994e36
to
fcb12d4
Compare
@rcarriga if you are up for it, I would love your input on this PR from your perspective as the creator of Neotest. 😄 TL;DR - I am detecting namespaces, and in the context of Go testing these will be used as testify suites. Each suite can contain any number of Go tests. But I have to do some real shenanigans to pull it all off like modifying the Neotest tree. There have been previous attempts to support testify suites in neotest-go (not this adapter 😅) from what I understand, but with significant caveats:
My approach looks like this:
I am especially interested in your input of what you think about how I access private Neotest members and modify the Neotest tree in |
906dbfd
to
04828ee
Compare
84f0850
to
f099f5e
Compare
f099f5e
to
92a0f4d
Compare
74b9348
to
f44809b
Compare
9f7deb8
to
c108e31
Compare
Hey just catching up on this now, very nice!
You could use lists directly instead of the tree. You can use
Not currently though your adapter should be called anytime a user edits a test file to parse the file again, is that not sufficient? |
Sounds at least like one gain, so I'll make sure to try that out!
I've added an initial trigger to generate the lookup here. Where do you suggest I add this |
Ah OK so then if you just run that whenever |
Yes, exactly, this is why I haven't implemented this re-generation of the lookup yet. If I just add it into |
I think debouncing is perfectly fine for this, I implemented it for the summary window to render as it has the same issue of lots of calls being made to render. It's just a simple |
Please give me a hand and try it out:
Aims to fix #25.
To do
Augument neotest position tree with lookup resolve for each position, prior to building runspec.pos.id
s before returning tree fromast.lua
. Should be able to remove all added hacks.Table tests support.Will likely not be part of initial implementation, just to realistically scope this down.testify.lua
into folder of files, to make it easier to become familiar with the structure/flow.tests/go/testify
folder/package with individual test files that tests each scenario.testify_enabled
?