Comments (8)
Please feel free to open a PR to help fix this. This plugin has no official maintainer and is entirely contributed by the community.
from neotest-go.
@marcomayer seems so. Nice catch. I can take a look later
from neotest-go.
Probably it is a nvim-treestitter
issue. I run same query on the online tree-sitter playground and using tree-sittier-go locally and all is works perfectly.
This issue only reproduces in nvim environment
I have opened a bug on nvim-treesitter repo.
from neotest-go.
@akinsho @marcomayer I pulled out last version of nvim that includes fix:
NVIM v0.9.0-dev-1149+gf9a46391a-dirty
Build type: Release
LuaJIT 2.1.0-beta3
Everything works for me now.
Could you please check it on your side?
from neotest-go.
Okay, thanks. I've spent half an hour trying to understand what's going on there but as treesitter queries are new for me, I'd need to spend much more time to get a grasp on this. Till then I'll turn test_tables off for now.
from neotest-go.
Unfortunately, there's still an issue starting at more than 9 tests, using this example:
func TestSomeTest(t *testing.T) {
tt := []struct {
name string
method string
url string
apiKey string
status int
}{
{name: "AccessDenied1", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
{name: "AccessDenied2", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
{name: "AccessDenied3", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
{name: "AccessDenied4", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
{name: "AccessDenied5", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
{name: "AccessDenied6", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
{name: "AccessDenied7", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
{name: "AccessDenied8", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
{name: "AccessDenied9", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
{name: "AccessDenied10", method: http.MethodGet, url: "/api/nothing", apiKey: "lalala", status: http.StatusForbidden},
}
for _, tc := range tt {
tc := tc
t.Run(tc.name, func(t *testing.T) {
fmt.Println(tc.name, tc.method, tc.url, tc.apiKey, tc.status)
})
}
}
"AccessDenied1" falls out of the results. @sergii4 @akinsho should we reopen this issue?
from neotest-go.
@sergii4 thanks a lot, yes this fixes it!
from neotest-go.
@marcomayer thanks for drawing attention to it!
from neotest-go.
Related Issues (20)
- 'No tests found' using minimal config HOT 40
- Test Output in JSON, making it difficult to read HOT 30
- Tests having warnings are marked as failed HOT 2
- Test coverage generation is not working properly due to cwd being changed to the test file directory. HOT 9
- Running package tests HOT 4
- Query: invalid structure at position 1288 for language go
- how to add test binary flags
- Cannot run spec tests HOT 3
- No Tests Found HOT 2
- Neotest-go not compatible with Go provided via pkgx HOT 1
- cannot run unit tests HOT 1
- neotest-go adapter being used for typescript files when repo has both typescript and go HOT 1
- Feat - Add Support for Nested Subtests
- Feature request: Add diagnostics for table tests. HOT 2
- Error with Neotest-go, subtests and skipping them. HOT 6
- "Run nearest" runs all tests HOT 1
- No tests found HOT 4
- Table tests not recognized when defined inside for-loop HOT 2
- Running test suite doesn't work
- Neotest watch does not work in a large Go repo HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neotest-go.