jonkemp / node-qunit-phantomjs

Run QUnit unit tests in a headless PhantomJS instance without using Grunt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] node-qunit-phantomjs hangs on Windows

elwayman02 opened this issue · comments

I have a very basic set of 4 tests that run fine in the browser, but when I run node-qunit-phantomjs tests/index.html, nothing happens...it just hangs indefinitely. Are you missing a dependency in package.json or something?

No, I'm not aware of anything like that. Unit tests pass for me. You can clone the repo and try them yourself if you want. You need to provide more information if you want help.

Command line hanging

screenshot_110614_115020_am

When run via browser:

screenshot_110614_115043_am

@jonkemp I've created a branch to demonstrate the issue:

https://github.com/elwayman02/node-qunit-phantomjs/tree/qunit

Just pull this branch, run npm install -g node-qunit-phantomjs; npm install, and then run node-qunit-phantomjs ./test/qunit.html

Sorry. I cannot reproduce.

Did you test on Windows, Mac, or Linux?

I'm on Windows 7. Have you tested node-qunit-phantomjs for compatibility with non-OSX environments?

Not the current release, no.

I'll update the issue to reflect this, then. Is there a tag I can use that has been tested for Windows compatibility?

As far as I know it was working on Windows before. So you might try tag/v0.2.1.

https://github.com/jonkemp/node-qunit-phantomjs/releases/tag/v0.2.1

It could be phantomjs itself causing the problem though so be aware of which version you are using.

Ok. I'll try 0.2.1 and see if it works. If I can get a stable working version, I might be able to help you test and isolate the issue so we can get 1.0.0 fixed.

Hmm...I'm getting the same problem even on 0.2.1...maybe the issue is phantomjs? Not sure.

I'm not able to reproduce this in Windows. I cloned the repo on a new virtual machine with Windows 7. Tests pass and the code works for me from script and command line. Can this be closed?