kmiyashiro / grunt-mocha

[MOVED] Grunt task for running mocha specs in a headless browser (PhantomJS)
MIT License
370 stars 106 forks source link

Mocha error breaking grunt command, thus can't run. #132

Closed patrickbjohnson closed 9 years ago

patrickbjohnson commented 10 years ago

Using the yeoman webapp generator and while the app builds successfully, the app breaks on grunt or grunt test commands with the follow:

Warning: PhantomJS timed out, possibly due to a missing Mocha run() call. Used --force, continuing.

When using force the grunt build goes through, but generates nothing to the page. Have no clue how to fix this. I've adjusted the versions to see if that would resolve the issue but nothing seems to fix it.

thinkinglemur commented 10 years ago

Having the same problem on Windows 8.1 except that grunt --force does not complete it just sits there after exiting the tests.

kmiyashiro commented 9 years ago

That message means mocha.run() is never called, which means there's an error in setup. It would help to see all relevant code you have.

thinkinglemur commented 9 years ago

I think the issue with my particular system was a file system limitation, the path to the project exceeded the maximum file length windows. Moving the project to a new location seems to work.