-
Notifications
You must be signed in to change notification settings - Fork 111
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: OSX and Windows tests #1989
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1989 +/- ##
==========================================
+ Coverage 85.68% 87.04% +1.36%
==========================================
Files 91 131 +40
Lines 3792 6306 +2514
Branches 1220 1520 +300
==========================================
+ Hits 3249 5489 +2240
- Misses 457 726 +269
- Partials 86 91 +5 ☔ View full report in Codecov by Sentry. |
I switched to using POSIX joins to ensure that the internal representation of paths is POSIX. Added a test. |
OSX tests are failing because we assume temporary files exist in /tmp, while OSX has different defaults. This creates a temporary file and splits the returned path to ensure we can point to existing files.
Windows can handle both slashes and backslashes as directory separators, and tests frequently use slashes to pass paths to the OS-aware parts of the code. Using SEPARATOR_PATTERN allows us to accept either.
The internal representation of file trees uses relative paths. For simplicity, we should ensure that these always use POSIX separators.
Builds on #1988, which resolves OSX failures.