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

Add ability to run all tests #470

Closed
rudiejd opened this issue Nov 12, 2024 · 2 comments
Closed

Add ability to run all tests #470

rudiejd opened this issue Nov 12, 2024 · 2 comments

Comments

@rudiejd
Copy link

rudiejd commented Nov 12, 2024

Problem: Often when I'm coding, I want to run every test in a project. Right now, my workflow is to open the summary window, navigate to the summary window, and press r over the highest level test group.

Solution: I would like to have a neotest.run.all() command that runs every test that has been discovered, and then optionally opens the summary window on failure.

Alternatives I've considered:

  • Just running the all tests once and then doing neotest.run.run_last(). The problem here is that if I run a singular test while debugging some issue, that test becomes my last test. Then I can no longer run all tests
  • Watching the directory, but that can sometimes cause not every test to be re-run (for example, if you have integration style tests that don't directly reference the symbols you're changing)
@Prometheus1400
Copy link

@rudiejd you can do this using neotest.run.run(vim.fn.getcwd())

@rudiejd
Copy link
Author

rudiejd commented Nov 13, 2024

that works for me... can't believe I missed that option 🙃

@rudiejd rudiejd closed this as completed Nov 13, 2024
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