nvim-neotest / neotest-go

MIT License
124 stars 43 forks source link

Tests having warnings are marked as failed #53

Closed olzhasar closed 5 months ago

olzhasar commented 1 year ago

Hi, Thank you for neotest-go, great work!

I'm experiencing an issue when tests are being marked as failed when they produce warnings, even though tests themselves pass: image

Here is the output from go test command:

➜  go-fileserver git:(registry) ✗ go test ./registry -count=1
# github.com/olzhasar/go-fileserver/registry.test
ld: warning: -no_pie is deprecated when targeting new OS versions
ld: warning: non-standard -pagezero_size is deprecated when targeting macOS 13.0 or later
ok      github.com/olzhasar/go-fileserver/registry      0.880s
sergii4 commented 1 year ago

Hi @olzhasar, what are the steps to reproduced this issue?

olzhasar commented 1 year ago

@sergii4 I believe these kind of warnings can be generated when go is calling C code.

I don't know the internals well, so no easy way to reproduce that I am aware of. I am experiencing these warnings when importing mattn/go-sqlite3 package on MacOS. You can try to run any go test with this package imported