News for hackers. Stuff that matters.
Re:Whiskey - A new node.js test framework from Rackspace by tlack on Wednesday March 14, 2012 @05:39PM (#3705510)
I'm somewhat new to Node, but why do they have you run the test suite like this:

  npm test
as mentioned here https://github.com/cloudkick/whiskey ? Shouldn't that just be 'node whiskey test' or similar?
Re:Whiskey - A new node.js test framework from Rackspace by _harry on Wednesday March 14, 2012 @06:10PM (#3705663)
npm provides a common interface for running package scripts: http://npmjs.org/doc/scripts.html

So if you open the package.json (https://github.com/cloudkick/whiskey/blob/master/package.jso...) you'll see that `test` runs `make test`.

Check out the Makefile (https://github.com/cloudkick/whiskey/blob/master/Makefile) to see what `npm test` is doing. This abstracts out the test command, because you could be running `cake test`, `make test`, `node whiskey test`, etc. and if you're just using the node package, you probably don't care what the command is, you just want to run the tests. `npm test` is the way to do it.

Re:Whiskey - A new node.js test framework from Rackspace by benatkin on Wednesday March 14, 2012 @06:04PM (#3705631)
npm test runs whatever shell command is in package.json under scripts/test.