-
Notifications
You must be signed in to change notification settings - Fork 21
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: testify not working with import alias #261
Comments
I would be more than happy to give this a shot, but I am not very familiar with the treesitter queries and if this can even be done with the current approach. If this is doable, it would be nice as a starting point, as I would love to expand the testify support (and this could be a good starting point). |
I'm not sure if this can be done and maintain reliability. I believe it's in here that you need to somehow be able to detect the
You can try removing I just recently had a report that these operands were wrongly identified as vanilla go tests, and fixed in this PR: #244 |
I should add that it's quite difficult to support testify well, as you might imagine 😅 |
This issue has been open for 20 days with no activity. Remove the stale label or add a comment or it will be closed in 10 days. |
Hey again @gjermundgaraba could you please give the I've hardcoded support in #291 for {
"fredrikaverpil/neotest-golang" ,
branch = "testify-regexp",
} |
I've implemented support for this. You will have to add optional config to enable your use case. See the docs for more info: https://fredrikaverpil.github.io/neotest-golang/config/#testify_import_identifier |
Did you check docs and existing issues?
Neovim version (nvim -v)
0.10.3
Operating system/version
MacOS 15.2
Output from
:checkhealth neotest-golang
Describe the bug
If the testify suite import has been aliased, running tests don't work.
More specifically, they are "not found" (testing: warning: no tests to run):
Steps To Reproduce
testifysuite "github.com/stretchr/testify/suite"
Expected Behavior
Ideally, it would work with aliased imports.
Your Lua setup
No response
The text was updated successfully, but these errors were encountered: