/stryker-tape-runner

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

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Build Status NPM Node version Gitter

Stryker

Stryker Tape Runner

The Stryker TestRunner for Tape

Known issues:

  1. You must use tape-catch otherwise uncaught exceptions will blow up the test runner
  2. If you choose a lot of files to mutate, chances are you'll eventually hit a V8 out of memory error

Instructions:

Add stryker-tape-runner as a plugin and set tape as the test runner + reporter.

Sample config:

module.exports = function (config) {
  config.set({
    files: [
      'test/tape/**/*.js',
      { pattern: 'src/analyseSentiment.js', included: false, mutated: true },
      { pattern: 'src/**/*.js!analyseSentiment.js', included: false, mutated: false }
    ],
    testFramework: 'tape',
    maxConcurrentTestRunners: 3,
    testRunner: 'tape',
    coverageAnalysis: 'off',
    reporter: ['progress', 'clear-text'],
    logLevel: 'info',
    plugins: ['stryker-tape-runner']
  });
};