Litmus Test
Run Litmus Tests directly from the command line using Node.
A work in progress :(
Install
$ npm install litmus-test
Note: This will need to be npm link
ed for now.
Configure
TODO: Use a local package.json file.
$ cp config.example.json config.json
And update the settings however you like.
Quick start
Pipe a file at it:
$ cat path/to/email.html | litmus-test -d test/dir
PENDING: Or use a Node.js stream:
var fs = LitmusTest = ; fs ;
Help
Thankfully, commander
provides us with a command-line help:
$ litmus-test -h Usage: litmus-test [options] Options: -h, --help output usage information -V, --version output the version number -t, --testId <n> test id
API integration
List tests
$ litmus-test -l
Re-test
$ cat path/to/email.html | litmus-test -t TEST_ID
PENDING: within Node.js, it is possible to create-or-retest:
var fs = LitmusTest = ; fs ;