-
Notifications
You must be signed in to change notification settings - Fork 372
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
Tests fail on Windows #14
Comments
Hmm. I haven't tested on Windows yet but this looks very curious. Could you let me know if you're able to get this sample using Critical running for you correctly on Windows https://github.com/addyosmani/critical-path-css-demo? Alternatively, just verifying the module works in your environment would be of great help. I'm trying to determine if this is a test harness issue, fs, penthouse or straight-out something silly I'm doing in the module. |
Sure thing. I'll test things out when I'm back.
|
Appreciate it! |
I can't even install the dependencies for the demo... too many errors. At first I thought it's because of too long filenames. I even moved the repo in C:\ but I still can't install the deps. |
That's crazy. I wonder if the same issues occur with running https://github.com/pocketjoso/penthouse standalone vs. my module. I don't have a windows box handy but will try to debug this issue next week and get to the bottom of it. |
Nope, penthouse works fine by doing |
Interesting. There's something silly I'm doing in this module then. Looking into it. |
@XhmikosR pushed some potential fixes to master. Could you let me know if there's any difference in test output? |
Sure, I'll try when I'm back☺
|
|
Thanks to Sindre we have a fresh rewrite now in master. Any luck now? |
I tried a couple hours ago after those patches and I still get the same
|
This is really weird. @sindresorhus I don't suppose you have any hints that would be worth considering here, would you? |
@XhmikosR run the test from master now and paste in the output ;) Also look at the terminal output from installing dependencies. The phantomjs install might have failed. |
Sure, I'll do it first thing tomorrow. On Wed, Jul 9, 2014 at 12:54 AM, Sindre Sorhus notifications@github.com
|
With LF forced for the test files, I get 3/6 passed BTW. |
I wonder if it's more sensible for our API tests to just test against the output of each method directly rather than writing to disk and comparing the read-in input. Do any of our non i/o tests pass on Windows? |
With this patch and LF forced for all the repository files I get 3 failing tests.
So I'd say we should have this merged. |
I've been testing the module on Windows 8 today and ran into the same issues @XhmikosR mentions above. In addition, even if we're not just talking about the unit tests, the demo app using this module also seems to silently fail (builds, but critical path CSS is not inlined). Something like this however does work (pardon Notepad): In contrast, I was able to get the penthouse test working locally on windows with no issues. |
Working on fixes. Have 4 tests passing now. Just a few more to go :) |
Cool, almost there 3/4 passing. One thing I notice with the tests branch is Also the On Sun, Jul 13, 2014 at 11:51 PM, Addy Osmani notifications@github.com
|
Good catch. We could indeed just simplify that further. I think you're right that the critical.css file might just be the one that needs correcting. Most of the tests are failing on inlining atm. |
You want |
Hah! I didn't realize that was supported :) |
Didn't know this existed either, thanks. |
All green now on windows even though the newlines had to be fixed in |
Tests still green on windows. Closing this for now. |
I managed to fix one of the tests by forcing LF. 5 still fail though.
The text was updated successfully, but these errors were encountered: