https://github.com/fabiosantoscode/mochallel
Mocha tests running in parallel
https://github.com/fabiosantoscode/mochallel
Last synced: 4 months ago
JSON representation
Mocha tests running in parallel
- Host: GitHub
- URL: https://github.com/fabiosantoscode/mochallel
- Owner: fabiosantoscode
- License: mit
- Created: 2018-10-15T18:52:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T20:24:15.000Z (about 3 years ago)
- Last Synced: 2025-01-13T14:54:36.908Z (about 1 year ago)
- Language: JavaScript
- Size: 458 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mochallel
[](https://travis-ci.org/fabiosantoscode/mochallel) [](https://coveralls.io/github/fabiosantoscode/mochallel?branch=master)
Mocha tests running in parallel
## comparison with mocha-parallel-tests
This module was inspired in `mocha-parallel-tests`, but attempts to be a simpler implementation, where options are just wired into the real `mocha` module.
## How to use
Use exactly like mocha.
```bash
mochallel --maxParallel 2 --timeout 2000 --slow 500 path/to/your/tests
```
Use the `--maxParallel ` option to specify how many parallel processes you want.
The other options are exactly like mocha.
## How to use (API)
Use exactly like mocha.
```javascript
const Mochallel = require('mochallel')
const mocha = new Mochallel({ maxParallel: 2 })
mocha.addFile('path/to/your/tests')
mocha.run(code => {
process.exit(code)
})
```
Use the `maxParallel` option to specify how many parallel processes you want.
All other options exactly like mocha.