That bats
is the shit for UNIX-shell-programs-testing should be well known.
Testing-with-bats
should be a hit too.
I like to test cli scripts with bats, however I write my scripts as node_modules and bats isn't published thus yet.
This should offer the latest
bats release - currently set to
v0.4.0
.
npm test
Install batshit globally with .travis.yml
:
install:
- npm install
- npm i -g batshit
In package.json
- batshit
is a devDependency,
though using global batshit
to npm test
:
"devDependencies": { "batshit": "*" },
"scripts": { "test": "batshit -t test" },
Links to projects tested with batshit
can be found on the wiki.