1. mocha-parallel-executor
This module supports executing test in parallel.
mocha-parallel-executor
Package: mocha-parallel-executor
Last modified: Mon, 20 Jun 2022 01:35:53 GMT
Version: 0.3.2
License: MIT
Downloads: 83

Install

npm install mocha-parallel-executor
yarn add mocha-parallel-executor

mocha-parallel-executor

This module supports executing test in parallel.

Installation

 $ npm install -D mocha-parallel-executor

Node.js

 const exec = require('mocha-parallel-executor');
exec(); // resolve path automatically

bash

 $ npx mocha-p

$ npx mocha-p --file ./test/xxx.js

$ npx mocha-p --files ./**/*.test.js

options

option description
debug be able to see all logs but don't write specs
timeout mocha' option. (default:2000ms)
concurrency If false were specified, all test cases will be executed in parallel. (default: os.cpus().length)
root target repository path. (default: process.env.PWD)
dir target test directory (default: ./test)
file a target file
files some target files
delay to wait next test

extra options for executor

option description
before execute function to edit environment
watch to see mocha json logs
error to see error logs
after execute function to edit result

example

 $ git clone https://github.com/suguru03/neo-async.git
$ cd neo-async
$ npm install
$ gulp test
/*
 * 1072 passing (32s)
 */

 $ gulp test:fast // using this module
/*
 * 1072 passing (12s)
 */

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin