Problem running basic tests with Buster.js version 0.4.6 beta2
90 views
Skip to first unread message
Integralist
unread,
Mar 19, 2012, 12:45:10 PM3/19/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Buster.JS
I'm running Mac OS X Lion (10.7.3) and in the past have been able to
use Buster.Js with the following test code, but since upgrading to
version 0.4.6 beta 2 buster has stopped working. I spoke with @cjno
who suggested I uninstall it and re-install from fresh (which I did)
and that didn't resolve the issue.
I've had this code running in the past, so I know there is nothing
wrong from that end - it's the upgrade that has caused the tests to no
longer run.
Any ideas about what the problem might be and how to fix it would be
appreciated.
Thanks,
Mark
August Lilleaas
unread,
Mar 19, 2012, 2:08:05 PM3/19/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bust...@googlegroups.com
It Works For Me (tm). I cloned the repo, made a test dir, and put buster.js and example-test.js in it. This is the output I got:
coldcache ~/s/gist-2030311 % buster test Chrome 17.0.963.56 Linux: .E
Deferred: Chrome 17.0.963.56 Linux My test module A test that I want to comment out for a while but not hide from the test results
Error: Chrome 17.0.963.56 Linux My test module A bad test (as it tests random stuff when it should test specific functionality)
TypeError: Object buster.assert has no method 'typeOf' at Object.<anonymous> (./test/example-test.js:100:10)
How do you install buster? And how did you do the uninstall and reinstall? Do you have a node_modules with buster in it in your project?
Malcolm Locke
unread,
Mar 19, 2012, 5:41:49 PM3/19/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bust...@googlegroups.com
Works for me also.
Does running it via `buster static` work?
Malc
Integralist
unread,
Mar 20, 2012, 4:59:28 AM3/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bust...@googlegroups.com
I un-installed it using `npm uninstall -g buster` and re-installed it using `npm install -g buster`.
I've just tried un-installing again and it wouldn't let me without using `sudo` (I think this may have happened the last time as well).
The initial data it has fed back when trying to uninstall without `sudo` is...
npm ERR! Error: EACCES, permission denied '/usr/local/lib/node_modules/buster/build' npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! npm ERR! System Darwin 11.3.0 npm ERR! command "node" "/usr/local/bin/npm" "uninstall" "-g" "buster" npm ERR! cwd /Users/stormcreative npm ERR! node -v v0.6.9 npm ERR! npm -v 1.1.0-3 npm ERR! path /usr/local/lib/node_modules/buster/build npm ERR! code EACCES npm ERR! message EACCES, permission denied '/usr/local/lib/node_modules/buster/build' npm ERR! errno {} npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/stormcreative/npm-debug.log npm not ok
...but after using `sudo` it doesn't display anything which usually means it has executed no problem, and if I execute `buster -v` or just `buster` I get `-bash: buster: command not found` so it looks un-installed to me.
I now execute `npm install -g buster` and I get the following data fed back...
npm http GET https://registry.npmjs.org/lru-cache Nothing to clean (project not configured) Nothing to clean (project not configured) npm http 304 https://registry.npmjs.org/lru-cache Setting srcdir to : /usr/local/lib/node_modules/buster/node_modules/buster-test-cli/node_modules/buster-syntax/node_modules/jsdom/node_modules/contextify Setting blddir to : /usr/local/lib/node_modules/buster/node_modules/buster-test-cli/node_modules/buster-syntax/node_modules/jsdom/node_modules/contextify/build Setting srcdir to : /usr/local/lib/node_modules/buster/node_modules/buster-test/node_modules/jsdom/node_modules/contextify Setting blddir to : /usr/local/lib/node_modules/buster/node_modules/buster-test/node_modules/jsdom/node_modules/contextify/build Checking for program g++ or c++ : /usr/bin/g++ Checking for program g++ or c++ : /usr/bin/g++ Checking for program cpp : /usr/bin/cpp Checking for program ar : /usr/bin/ar Checking for program cpp : /usr/bin/cpp Checking for program ar : /usr/bin/ar Checking for program ranlib : /usr/bin/ranlib Checking for program ranlib : /usr/bin/ranlib Checking for g++ : ok Checking for g++ : ok Checking for node path : Checking for node path : not found not found Checking for node prefix : Checking for node prefix : ok /usr/local/Cellar/node/0.6.9 ok /usr/local/Cellar/node/0.6.9 'configure' finished successfully (1.367s) 'configure' finished successfully (1.366s) Waf: Entering directory `/usr/local/lib/node_modules/buster/node_modules/buster-test-cli/node_modules/buster-syntax/node_modules/jsdom/node_modules/contextify/build' Waf: Entering directory `/usr/local/lib/node_modules/buster/node_modules/buster-test/node_modules/jsdom/node_modules/contextify/build' [1/2] cxx: src/contextify.cc -> build/Release/src/contextify_1.o [1/2] cxx: src/contextify.cc -> build/Release/src/contextify_1.o [2/2] cxx_link: build/Release/src/contextify_1.o -> build/Release/contextify.node [2/2] cxx_link: build/Release/src/contextify_1.o -> build/Release/contextify.node Waf: Leaving directory `/usr/local/lib/node_modules/buster/node_modules/buster-test/node_modules/jsdom/node_modules/contextify/build' Waf: Leaving directory `/usr/local/lib/node_modules/buster/node_modules/buster-test-cli/node_modules/buster-syntax/node_modules/jsdom/node_modules/contextify/build' 'build' finished successfully (2.246s) 'build' finished successfully (2.247s) npm http GET https://registry.npmjs.org/bindings npm http 304 https://registry.npmjs.org/bindings /usr/local/bin/buster -> /usr/local/lib/node_modules/buster/bin/buster /usr/local/bin/buster-test -> /usr/local/lib/node_modules/buster/bin/buster-test /usr/local/bin/buster-server -> /usr/local/lib/node_modules/buster/bin/buster-server /usr/local/bin/buster-static -> /usr/local/lib/node_modules/buster/bin/buster-static /usr/local/bin/buster-autotest -> /usr/local/lib/node_modules/buster/bin/buster-autotest bus...@0.4.6 /usr/local/lib/node_modules/buster ├── sinon-...@0.4.2 ├── buster...@0.5.1 ├── buster-eve...@0.4.2 ├── buster-a...@0.9.0 ├── buste...@0.5.1 ├── si...@1.3.2 ├── buster...@0.3.2 (buste...@0.4.1 buster-r...@0.2.0) ├── buste...@0.4.3 (buster-...@0.3.0 wh...@1.0.2 js...@0.2.13) └── buster-...@0.4.6
...now if I go back to the /test/ folder within the site structure I had (where I've got buster.js and my example-test.js file) and execute `buster server` and capture my current browser (latest Firefox) and then execute (in a new tab) `buster test` I straight away see `Firefox 11.0 OS X: ` and nothing else. The terminal just sits and doesn't display anything.
Maybe something in the data I've listed above might indicate why it's not working.
M.
August Lilleaas
unread,
Mar 20, 2012, 5:09:05 AM3/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bust...@googlegroups.com
Thanks for the very detailed feedback. I noticed this behaviour on macs earlier. If you're not consistent with your use of sudo, npm will stop working, basically. I personally never have this problem either on Linux or OS X, since I compile my own node and put it in ~/local, and never use sudo. I think it's common for OS X peeps to chown /usr/local to your own user so perhaps you can do that. Or just make sure you use sudo at all times if you don't. I don't think I can give you any better advice than that unfortunately, other than mentioning that the installer will fix this problem when it eventually comes around.
Integralist
unread,
Mar 20, 2012, 7:03:45 AM3/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bust...@googlegroups.com
That's fine, I'm happy to wait for the installer to resolve this issue - I wouldn't want to go and `chown` that /usr/local again as I had to do that previously with a dodgy homebrew install - so probably safer for me to leave it for the installer!
Any ideas (I know "finger in the air" time) on when the installer is likely to see the light of day?
Ta,
M.
August Lilleaas
unread,
Mar 20, 2012, 7:05:33 AM3/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bust...@googlegroups.com
Any ideas (I know "finger in the air" time) on when the installer is likely to see the light of day?
A couple of weeks.
Matthias Kling
unread,
Mar 20, 2012, 3:56:30 PM3/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bust...@googlegroups.com
Got faith w.r.t. OS X, but when it comes to Win... pretty brave, I'd say. Would love to be proven wrong, though :)
August Lilleaas
unread,
Mar 20, 2012, 4:15:33 PM3/20/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message