-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
neotest(nextest): when running a single test, multiple tests are ran (under some conditions) #618
Comments
PS. I'm happy to provide a PR with a fix, if given some guidance on the preferred solution, if this is something you're considering to fix |
Hey 👋 thanks for reporting 🙏
It's quite late where I am, so I won't be able to review before tomorrow. |
same here 😅 - I was thinking I could produce something tomorrow. Removing the flag is easy - I did that locally, but I'm not so versatile in Lua / nvim plugin development yet. I could probably produce something tomorrow midday. Seems like a good issue to start ;) Edit: I've quickly glanced over the files you've pointed me to (thx), and it seems that there is an utility I would extend it with the support of checking the version requirements, there is also So basically I'd leave the flag I hope this makes sense. |
hey, I've created a PR with the change. I've implemented it like we have discussed. I'm not sure if I should also contribute to the CHANGELOG, should I? |
Thanks 🙏 No need to update the changelog. That's done automatically by a GitHub actions workflow. |
Have you read the docs and searched existing issues?
Neovim version (nvim -v)
v0.10.2
Operating system/version
MacOS
Output of :checkhealth rustaceanvim
How to reproduce the issue
Expected behaviour
Only the tests that is selected for execution runs.
This problem is caused by the fact, that there is an
--exact
flag being removed from the nextest runner, as it used to not be supported. There are couple of ways this can be fixed. The flag is now supported, since version 0.9.81: https://nexte.st/docs/running/#--skip-and---exactAnother way would be to run it with the previously supported way, so that instead of the
one can generate the following command:
Actual behaviour
Running the first test will run both (You can see that in the output), which is confusing. The reporter will report it correctly, but when inspecting output one can see that both tests ran:
The minimal config used to reproduce this issue.
The text was updated successfully, but these errors were encountered: