mocca
Overview
It's quite cumbersome to install mocha, all awesome plugin you love and call it with the right arguments...
... but mocca is here to help you!
Features
- A whole bunch of awesome plugins
- Auto detects babel
npm install babel-core
andbabel-core/register
will be used as compiler
- Overwrite options from either
.mocha.opts
or.moccarc
- Creates a JUnit compliant
test-results.xml
on TravisCI and CircleCI- To be honest: It's based on the existance of the environment variable
CI
- To be honest: It's based on the existance of the environment variable
- Detect test files based on the
__test__/someFile-test.js
naming scheme
Installation
It's simple as:
$ npm install --save-dev mocca
And running your tests is also pretty simple:
$ ./node_modules/.bin/mocca