Closed wackazong closed 11 years ago
Hey there
Typically that error means a compilation problem with the unit tests, or the main app code.
Can you try to run this from the command line when RTD is running:
karma run
This will tell karma to run the tests once. Let me know if the error messages there shed any light
What I did: in mygitclone/test/rtd
I started grunt
in one shell in mygitclone/test/rtd
I executed karma run
Nothing happens for about 30 secs, then both processes end and the grunt process displays
Error: Command failed: Fatal error: Command failed:
Thanks.
After starting RTD, could you try and hit your app on port 3000 and port 8000 and see it's working there, then type karma run
, I'm trying to isolate if it's a test timeout issue or RTD starting up.
The other thing to try, is to comment out any references to 'bgShell:instrumentCode'
in /test/rtd/Gruntfile.js
I'm wondering if the instrumentation is meddling with coffee script.
Commented out 'bgshell:instrumentCode'
, rtd serves app on 8000 and 3000. Still, same behaviour.
After rtd
crashes, a ps -ef | grep meteor
reveals:
502 3847 1 0 8:22am ttys000 0:01.22 /usr/bin/java -jar /Users/alexanderwalter/Development/meteor-test/test/rtd/lib/bin/selenium-server-standalone-2.32.0.jar -port 4444 -Dwebdriver.chrome.driver=/Users/alexanderwalter/Development/meteor-test/test/rtd/lib/bin/chromedriver
502 3855 1 0 8:22am ttys000 0:00.00 /bin/sh -c cd /Users/alexanderwalter/Development/meteor-test/test/rtd/../../test/rtd/mirror_app;meteor run --port 8000 > /dev/null;
502 3856 3855 0 8:22am ttys000 0:03.40 /Users/alexanderwalter/.meteor/tools/11f45b3996/bin/node /Users/alexanderwalter/.meteor/tools/11f45b3996/tools/meteor.js run --port 8000
502 3874 1 0 8:22am ttys000 0:00.00 /bin/sh -c cd /Users/alexanderwalter/Development/meteor-test/test/rtd/../../app;meteor run --port 3000 > /dev/null;
502 3875 3874 0 8:22am ttys000 0:02.48 /Users/alexanderwalter/.meteor/tools/11f45b3996/bin/node /Users/alexanderwalter/.meteor/tools/11f45b3996/tools/meteor.js run --port 3000
502 3892 3856 0 8:22am ttys000 0:06.47 /Users/alexanderwalter/.meteor/tools/11f45b3996/mongodb/bin/mongod --bind_ip 127.0.0.1 --smallfiles --port 8002 --dbpath /Users/alexanderwalter/Development/meteor-test/test/rtd/mirror_app/.meteor/local/db
502 3895 3875 0 8:22am ttys000 0:06.48 /Users/alexanderwalter/.meteor/tools/11f45b3996/mongodb/bin/mongod --bind_ip 127.0.0.1 --smallfiles --port 3002 --dbpath /Users/alexanderwalter/Development/meteor-test/app/.meteor/local/db
502 3901 3875 0 8:22am ttys000 0:01.21 /Users/alexanderwalter/.meteor/tools/11f45b3996/bin/node /Users/alexanderwalter/Development/meteor-test/app/.meteor/local/build/main.js --keepalive
502 3902 3856 0 8:22am ttys000 0:01.19 /Users/alexanderwalter/.meteor/tools/11f45b3996/bin/node /Users/alexanderwalter/Development/meteor-test/test/rtd/mirror_app/.meteor/local/build/main.js --keepalive
all the processes look normal from here.
If possible, would you mind sending me the app (cut out any private code) so that I can debug? This one seems quite odd! sam @ xolv dot io
Thank you for sending that through, it works here just fine so that tells me it's an environmental problem on your machine setup.
which version of phantomjs to you have? Try changing PhantomJS to Chrome in karma.conf
Yeah, that does it. All up and running now.
phantomjs is 1.9.0. Installed via npm install -g phantomjs
Ok, it seems to be this issue here: https://github.com/karma-runner/karma/blob/master/lib/server.js#L43
I followed the quick fix suggestion (https://github.com/karma-runner/karma/issues/558#issuecomment-18707232) and it works now.
Quick sidenote: is there a better way to refer to other issues and comments on github?
Excellent. Glad it's resolved and good to know there's a Karma issue with the latest node.
Not sure how to refer to other comments, my github-fu is not up to scratch!
Hey, I installed it as prescribed, started it with
grunt
, modified a file and I get:Any pointers?
System is Mac 10.8.3