nvim-neotest / neotest-go

MIT License
125 stars 43 forks source link

QUESTION: run tests for entire project? #5

Closed hahuang65 closed 2 years ago

hahuang65 commented 2 years ago

Just wondering if there was a way to run the entire project?

I've tried require('neotest').run.run(vim.fn.getcwd()) as well as require('neotest').run.run('./...') but neither worked. Wondering if I'm just doing it wrong, or should I fork this and try to implement support for it?

akinsho commented 2 years ago

@hahuang65 was about to say that I have no idea but found a bug when I was just cross checking where every path passed in was being truncated to the one above which is needed for file tests but breaks directory tests. This should now work with require('neotest').run.run(vim.fn.getcwd())

akinsho commented 2 years ago

getcwd() must evaluate to your project root

hahuang65 commented 2 years ago

awesome, thank you so much!!