shell – ScraperWiki https://blog.scraperwiki.com Extract tables from PDFs and scrape the web Tue, 09 Aug 2016 06:10:13 +0000 en-US hourly 1 https://wordpress.org/?v=4.6 58264007 npm install urchin https://blog.scraperwiki.com/2013/06/npm-install-urchin/ Mon, 24 Jun 2013 16:36:59 +0000 http://blog.scraperwiki.com/?p=758218901 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.

]]>
758218901