Skip to content

Tests fail to run properly due to parse error #77

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

Open
paulyoung opened this issue May 13, 2014 · 2 comments
Open

Tests fail to run properly due to parse error #77

paulyoung opened this issue May 13, 2014 · 2 comments

Comments

@paulyoung
Copy link
Contributor

The mocha_phantomjs:all grunt task is failing with SyntaxError: Parse error for me.

Pauls-MacBook-Pro:engine Paul$ npm run-script test

> gss-engine@1.0.2-beta test /Users/Paul/git/the-gss/engine
> node_modules/.bin/grunt test

Running "coffee:src" (coffee) task
File lib/Commander.js created.
File lib/Engine.js created.
File lib/EventTrigger.js created.
File lib/GSS-with-compiler.js created.
File lib/GSS.js created.
File lib/Thread.js created.
File lib/Worker.js created.
File lib/_.js created.
File lib/dom/Getter.js created.
File lib/dom/IdMixin.js created.
File lib/dom/Observer.js created.
File lib/dom/Query.js created.
File lib/dom/View.js created.
File lib/gssom/Rule.js created.
File lib/gssom/StyleSheet.js created.

Running "coffee:spec" (coffee) task
File spec/cassowary.js created.
File spec/command-nested-rules.js created.
File spec/command.js created.
File spec/end-to-end.js created.
File spec/engine.js created.
File spec/eventtrigger.js created.
File spec/getter.js created.
File spec/perf.js created.
File spec/setter.js created.
File spec/thread.js created.
File spec/view.js created.
File spec/worker.js created.
File spec/poly-test/spec.js created.

Running "concat:worker" (concat) task
File "dist/worker.js" created.

Running "uglify:worker" (uglify) task
File "./dist/worker.min.js" created.
Original: 65506 bytes.
Minified: 57631 bytes.

Running "exec:component_install" (exec) task

     install : the-gss/compiler@master
     install : d4tocchini/customevent-polyfill@master
     install : slightlyoff/cassowary.js@master


Running "exec:component_build" (exec) task

Running "uglify:engine" (uglify) task
File "./dist/gss.min.js" created.
Original: 924213 bytes.
Minified: 264116 bytes.

Running "usebanner:dist" (usebanner) task
✔ grunt-banner completed successfully

Running "coffeelint:src" (coffeelint) task
>> 15 files lint free.

Running "coffeelint:spec" (coffeelint) task
>> 12 files lint free.

Running "connect:server" (connect) task
Started connect web server on localhost:9999.

Running "mocha_phantomjs:all" (mocha_phantomjs) task
SyntaxError: Parse error


Warning: 1 tests failed Use --force to continue.

Aborted due to warnings.
npm ERR! weird error 6
npm ERR! not ok code 0
@paulyoung
Copy link
Contributor Author

Could be related to ariya/phantomjs#10930. Trying to workaround it but need confirmation on how to properly set a header in grunt-mocha-phantomjs (see jdcataldo/grunt-mocha-phantomjs#6).

@paulyoung
Copy link
Contributor Author

@d4tocchini and I discussed this. It's a known issue since Phantom it lacks support or isn't configured for some things we're doing. For now the workaround is to run tests in the browser.

I'm going to keep this issue open until I can at least provide info on how to do that and possibly make it clear that Phantom isn't working at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant