npm install urchin
Urchin, the shell testing framework for extreme hipster superheroes (I’m not including myself in that group I should add), is now available as an npm package.
That means you can install it using npm:
sudo npm install -g urchin
If you’re not hipster enough to use npm then you can still wget it from github:
cd /usr/local/bin
wget https://raw.github.com/scraperwiki/urchin/master/urchin
chmod +x urchin
For Urchin, a test is just a program that has exit status 0 for success, and non-0 for fail. Put them all in a directory called test and run:
urchin test
I’ve been using it organise and run the tests for one of my sillier recent projects.