testfull
v1.0.0
Published
Unit testing tool with karma & webpack & mocha & sinon & chai
Downloads
4
Maintainers
Readme
testfull
Built-in
Usage
Add -test.js suffix with your test files
"srcipts": {
"test": "testfull"
}
with options:
testfull --port 9888 --assert shouldjs --browsers Chrome
Options
--port
: server port, default is 9876;--browsers
: default:PhantomJS
, run tests in specify browsers;--assert
: run tests with custom assert library <expectjs、shouldjs、chaijs(default)>
Browsers & Assert Libs
Browsers:
atool-test --browsers Chrome,Firefox
- Chrome:
npm install karma-chrome-launcher --save-dev
- Firefox:
npm install karma-firefox-launcher --save-dev
- IE:
npm install karma-ie-launcher --save-dev
- Safari:
npm install karma-safari-launcher --save-dev
Assert Libs:
atool-test --assert expectjs
- expectjs:
npm install karma-sinon-expect --save-dev
- shouldjs:
npm install karma-should-sinon karma-should karma-sinon --save-dev