Skip to content

WIP: Make tests pass on Windows - #171

Closed
NogsMPLS wants to merge 4 commits into
lerna:masterfrom
NogsMPLS:makeTestPassOnWindows
Closed

NogsMPLS wants to merge 4 commits into
lerna:masterfrom
NogsMPLS:makeTestPassOnWindows

Conversation

@NogsMPLS

Copy link
Copy Markdown
Contributor

Still not finished with this, but wanted to get the PR out there for people to look at and make sure I'm not making any *nix issues by fixing on Windows.

Originally had 16 failing tests with a raw pull down of lerna, I've got it down to 3 failing tests now on Windows, but these are proving a bit trickier to solve than your basic slash/end-of-line bugs.

These are the remaining 3 failing tests:
windows-errors

Thing is, the exact tests that it fails on is random. Each time I run it I will get a different test that errors out with Unexpected end of JSON input and a different test that errors out with done() invoked with non-Error: Error: ENOENT: no such file or directory...

I think this has something to do with cpr module, but I need to dig more.

Comment thread test/_initFixture.js Outdated
if (err) return callback(err);
process.chdir(testDir);
child.execSync("git init . && git add -A && git commit -m 'Init commit'");
child.execSync('git init . && git add -A && git commit -m "Init commit"');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the style is currently ", if there isn't an eslint rule for it we should have it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya i saw, but this actually fixes a windows issue, believe or not.

Basically on windows commit message MUST be in double quotes, not single like it was before. So i turned ths string to have single on the outside so i could get double inside.

If you like i could change it to a es6 template literal string. But need to keep double quote around the commit message for windows compatability.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just do:

"g...m \"Init commit\""

@NogsMPLS
NogsMPLS force-pushed the makeTestPassOnWindows branch 2 times, most recently from 82395de to 6f822c1 Compare June 2, 2016 02:43
@NogsMPLS

NogsMPLS commented Jun 2, 2016

Copy link
Copy Markdown
Contributor Author

Okay, so, switching out cpr to fs-extra.copy got rid off all the 'file doesnt exist' errors and the weird Unexpected end of JSON input errors.

Now it is consistently just these two specific UpdatedCommand tests that are failing:

updatedcommand-errors

I'll continue working on it.

@hzoo

hzoo commented Jun 7, 2016

Copy link
Copy Markdown
Contributor

We can also merge as is and you can do another PR - if we want to support windows we should also setup CI on it via appveyor

@NogsMPLS

NogsMPLS commented Jun 7, 2016

Copy link
Copy Markdown
Contributor Author

Yeah, might be a good idea. Real Life (TM) got in the way this week. I'll keep this on my list of things to come back around to though

@hzoo hzoo mentioned this pull request Jun 21, 2016
@hzoo

hzoo commented Jun 23, 2016

Copy link
Copy Markdown
Contributor

Can merge what is here manually

@NogsMPLS

Copy link
Copy Markdown
Contributor Author

oh didn't see it got out of date. I can bring is back up to date here if you want me to still

@NogsMPLS
NogsMPLS force-pushed the makeTestPassOnWindows branch from 81c5117 to 48f0766 Compare June 23, 2016 02:09
@hzoo

hzoo commented Aug 12, 2016

Copy link
Copy Markdown
Contributor

#236 included this so closing!

@hzoo hzoo closed this Aug 12, 2016
@lock

lock Bot commented Dec 28, 2018

Copy link
Copy Markdown

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Dec 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants