@rnd7/rum-tester
v1.0.20
Published
Rumbullion ES6 test-runner
Downloads
3
Readme
rum-tester
Rumbullion ES6 test-runner. Basically a wrapper around mocha
Install
I prefer installation per package. But you can also install it global to link the make-rum command systemwide.
npm i -D @rnd7/rum-tester
Run
Configure it within the package.json file of your project. If present the directory setting in the rum.tester config will define the entry point otherwise it defaults to 'test'.
{
"name": "myPackage",
"rum": {
"tester": {
"directory": "test"
}
},
"scripts": {
"test": "test-rum"
},
"devDependencies": {
"@rnd7/rum-tester": "^1.0.0"
}
}
And afterwards you can run the script using
npm test
Or execute it via npx from your project root, while it still uses the package.json for configuration
npx test-rum
You might also invoke it by poiting node towards the bin js, though it is only recommended for development purposes or to test the rum-tester using rum-tester.
node bin/test-rum.js
License
See the LICENSE file for software license rights and limitations (MIT).