Run tests for multiple versions of Node.js in local env.
Automatically update testen badge in your README after running tests.
# if you are using `n`
$ npm install -g testen@0.1
# if you are using `nvm`, required node >= 4
$ npm install -g testen
# use system's default node version to run `npm test`
$ testen
# multiple versions
# please ensure the version you wanna test with was already intalled
$ testen -n 4.2.4 -n 5.6.0 -n 0.12.0
# override test script, default is '-- npm test'
$ testen -n 0.12.0 -n 4.2.4 -n 5.6.0 -- ava
Auto-update badge
Add ![testen badge]()
to your README.md
and it will automatically update the badge after running each test. Use --disable-badge
or remove that mark to disable this behavior.
Read Node.js versions from package.json
{
"testen": {
"node": ["0.12.0", "5.6.0", "4.2.4"]
}
}
$ testen --help
Usage:
--node/-n [version]: Add a node version to test
-- [command]: The test command you expect
--disable-badge: Disable auto-update testen badge
--verbose: Always output everything
~ example: there are `console.log` in test
MIT © EGOIST