-
Notifications
You must be signed in to change notification settings - Fork 620
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
Fix "deno test" on windows #599
Conversation
It seems that the file matching is working fine after all (example build). Maybe let's put off this change until we land updated test runner. Tests will fail if there are no matching files found. |
@bartlomieju The test succeedes, but it doesn't actually test anything. The tests itself aren't actually run. Look at the windows part of that link you sent. It finishes after just under 2 minutes while both Linux and MacOS take significantly longer. If you look at where 'deno test' is actually we excuted you will see that it does not find any tests to run. That means the tests on windows are broken. This is caused by the globs that are designed for Unix not working for windows because it uses a different path delimiter. I think this should go in as it fixes the issue. |
Oh and tests do not fail if no files are found. |
Ha! I could swear that I had different result when I pasted the link, dunno... Then the issue stands.
Yes, they don't right now, I forgot to tag the PR which will introduce this behavior: #604 |
@lucacasonato You'll have to fix the issues to get this green. For For |
@lucacasonato On second thoughts, I've just applied these fixes in #604 (b3926f0). It would probably be easier to close this 🙏 |
No Problem |
This brings all session-related logic under one roof.
Fixes #593
Use backslashes on windows for the default matcher globs.
Some tests don't run correctly on windows because they expect
\n
to result in a line break or/
to be the file separator. These should probably be fixed in different PRs to keep this one simple.