Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mocha-parallel-generators

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-parallel-generators

support thunk for mocha test

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

mocha-parallel-generators

  • executes each of your test files in a separate process
  • maintain the output structure of mocha
  • support thunk/generator/promise

It is based on Co Mocha and Mocha Parallel Tests

Installation

npm install --save-dev mocha-parallel-generators
npm install --save-dev mocha mocha-parallel-tests

Usage

In your editor:

require('mocha-parallel-generators'); // just require this module
var assert = require('assert');
describe('Array', function() {
  describe('#indexOf()', function() {
    it('should return -1 when the value is not present', function() {
      assert.equal([1,2,3].indexOf(4), -1);
    });
  });
});

CLI

./node_modules/mocha-parallel-tests/dist/bin/cli.js test/test.js 

see more Mocha Parallel Tests CLI

Comparison with Co Mocha

Co Mocha is a mocha patch which allows you to run genarator-style mocha test.But it doesn't support thunk-style mocha test and it only yield a function, promise, generator, array, or object, not constant such as yield "123" or yield 123.This module can support these and it is base on thunks.

Keywords

FAQs

Package last updated on 14 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc