mochallel

Mocha tests running in parallel
mocha parallel testing test


Summary

Project Name mochallel Project Url https://github.com/fabiosantoscode/mochallel#readme
InceptionYear 2018-10-15 22:19:05 更新时间 2019-01-05 03:28:13
IssueManagement https://github.com/fabiosantoscode/mochallel/issues Licenses ISC
仓库地址 git+https://github.com/fabiosantoscode/mochallel.git 用户数 0
Node Engine 文件大小 17.2 KB
install test coveralls prepare precommit lint

项目介绍

# mochallel [![Build Status](https://travis-ci.org/fabiosantoscode/mochallel.svg?branch=master)](https://travis-ci.org/fabiosantoscode/mochallel) [![Coverage Status](https://coveralls.io/repos/github/fabiosantoscode/mochallel/badge.svg?branch=master)](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 instead of going the same route, it went into a simpler pathway, where options are just wired into the real mocha module, and it uses a generic pool from another npm module. ## How to use Use just 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.

Dependencys

GroupId ArtifactID Version 引用量
Sebastian McKenzie babel-polyfill 6.26.0 18839
TJ Holowaychuk commander 5.1.0 44492
Gregg Caines coveralls 3.1.0 41856
fabiosantoscode multiprocess-map 1.5.3 2

开发依赖

GroupId ArtifactID Version 引用量
Sebastian McKenzie babel-cli 6.26.0 958
Henry Zhu babel-preset-env 1.7.0 41552
Yehuda Katz, Tom Dale, Stefan Penner and contributors es6-promise 4.2.6 6627
Nicholas C. Zakas eslint 7.4.0 220088
Feross Aboukhadijeh eslint-config-standard 14.1.1 26315
Ben Mosher eslint-plugin-import 2.22.0 96096
Toru Nagashima eslint-plugin-node 11.1.0 27563
jden eslint-plugin-promise 4.1.1 19777
Jamund Ferguson eslint-plugin-standard 4.0.1 21829
Typicode husky 4.2.4 45562
Krishnan Anantheswaran istanbul 0.4.5 223