npm install urchin

2 urchin tests

Urchin tests

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.

This entry was posted in developer and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s