Skip to content
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

QUESTION: run tests for entire project? #5

Closed
hahuang65 opened this issue Jun 15, 2022 · 3 comments
Closed

QUESTION: run tests for entire project? #5

hahuang65 opened this issue Jun 15, 2022 · 3 comments

Comments

@hahuang65
Copy link

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
Copy link
Collaborator

akinsho commented Jun 15, 2022

@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
Copy link
Collaborator

akinsho commented Jun 15, 2022

getcwd() must evaluate to your project root

@hahuang65
Copy link
Author

awesome, thank you so much!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants