-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
No test suite found
on windows for v0.28.5+
#2962
Comments
No test suite found
on windows for v0.28.5+
Any update on this? really need the help... :( |
@sheremet-va Hey, sorry to bother you as I know you are busy and really appreciate the work done by the Vitest Team. Is there any chance this could be inspected? As I can see it's still an issue in This is currently causing big trouble for me to use the latest version of Vitest, and someone else reacted with emojis as well so I guess it's not only me. Thanks for that. |
@xsjcTony I don't have Windows machine available but hopefully we could reproduce this issue on Windows CI. Could you try to reduce your minimal setup a bit more:
Maybe steps above can narrow down the issue to a specific feature of Vitest. |
@AriPerkkio I think I've got the cause. Before I explain, here's my environment. So my real test project path is but if I enter And things become weird. I'm not sure if the issue is
As you can see in the screenshot below, the way So I think, if Otherwise, please inspect. Thanks |
I believe using
PR: #2819 I can't find any documentation about the case sensitivity when I'm not sure about it but I think I should at least report what I suspect cc @sheremet-va |
Confirmed the same things happens in Windows 10 |
Your reproduction works fine for me in PowerShell (Terminal app). My path is: |
@sheremet-va Thanks for inspecting. Can you please follow the following steps, as it reproduced the issue for me on three different windows machines:
|
Works for me:
|
I'm not getting it... :( The node version of my machines which can reproduce this is If really no one in the team can reproduce it... I guess nothing we can do :((((. Since all I need to do is to make sure the path matches the actual case, although it's a little bit annoying but at least it's not a show stopper. |
Looks like it's a similar issue, but I've no idea if the root cause can be relevant. vitejs/vite#12923 |
I think it is fixed. If not, feel free to comment to reopen the issue. |
Describe the bug
Hey, I'm running vitest via npm scripts on Windows, which results in no test suite found for all test files.
It might be related to #2020 since it's working for me if I run the command in the docker environment which is WSL (I guess, not sure). But I still want it to be runnable locally, since it's way too slow in the Docker...
Downgrading to
v0.28.4
solves the issue, which means the problem only exists for versionv0.28.5
and later (I suspect some changes caused this inv0.28.5
release, doubting #2819 or #2858) (For screenshots ofv0.28.4
andv0.28.5
please see below)Just so you know, I don't have administrator privilege in my local environment, I'm not sure if that's causing the issue. In the Docker environment, I have all access and it's working perfectly.
But just like I said, since v0.28.4 is working as expected, there's no reason it's not working after v0.28.5 in the exact same machine and environment, there must be some changes in that release caused this issue :(
Thanks for inspecting that, appreciate it.
Reproduction
https://github.com/xsjcTony/vitest-bug-repord
Please clone and run
The original issue is #2921 but since it has been marked as "Need Reproduction" and closed automatically, so I have to open a new issue here. Sorry for the inconvience.
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: