You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@stryker-mutator/mocha-framework

Package Overview
Dependencies
Maintainers
4
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stryker-mutator/mocha-framework

A plugin to use the mocha test framework in Stryker, the JavaScript mutation testing framework

4.0.0
latest
Source
npmnpm
Version published
Weekly downloads
3.9K
32.87%
Maintainers
4
Weekly downloads
 
Created
Source

Mutation testing badge Build Status NPM Node version Slack Chat

Stryker Mocha Framework

A plugin to speed up Mocha tests in Stryker, the JavaScript mutation testing framework.

This plugin makes it possible for Stryker to use coverageAnalysis: 'perTest', by providing the abstraction to select which individual test(s) to run. You might also be looking for the stryker-mocha-runner, which makes it possible to use the node-based Mocha test runner in stryker.

Install

Install @stryker-mutator/mocha-framework locally within your project folder, like so:

npm i --save-dev @stryker-mutator/mocha-framework

Peer dependencies

The @stryker-mutator/mocha-framework is a plugin to use mocha for stryker as a test framework. As such, you should make sure you have the correct versions of its dependencies installed:

  • @stryker-mutator/core
  • mocha

Configuring

You can either configure the mocha test framework using the command line or by providing it in the stryker.conf.js file. This README describes how to use the stryker.conf.js (or stryker.conf.json) config file:

// stryker.conf.js
module.exports = {
    // ...
    testFramework: 'mocha',
    coverageAnalysis: 'perTest'
    // ...
}

Keywords

stryker

FAQs

Package last updated on 07 Oct 2020

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