Socket
Socket
Sign inDemoInstall

@stryker-mutator/api

Package Overview
Dependencies
3
Maintainers
4
Versions
95
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @stryker-mutator/api

The api for the extendable JavaScript mutation testing framework Stryker


Version published
Weekly downloads
85K
decreased by-1%
Maintainers
4
Created
Weekly downloads
 

Changelog

Source

6.0.0-beta.0 (2022-03-02)

Bug Fixes

  • jest: hit limit spread over multiple files (#3446) (51308f4)

Features

  • checker-api: support checking on groups of mutants (#3450) (e9bbd39)
  • esm config: support config file as pure esm (#3432) (309a7e2)
  • esm: migrate StrykerJS to pure ESM (#3409) (78c305e)
  • esm: support esm in the mocha runner (#3393) (2eb3504), closes #2413 #2413
  • esm: support native es modules in the jasmine runner. (#3396) (94708d0), closes #3340
  • hit limit: infinite loop prevention in jest-runner (#3439) (5fecd52)
  • html reporter: allow choice of fileName. (#3438) (d197319)
  • ignore static: allow to ignore static mutants (#3284) (75d9b79)
  • ignore static: prevent leak of hybrid mutants (#3443) (231049a)
  • karma-runner: support async karma configuration (#3433) (7204a43), closes /github.com/karma-runner/karma/blob/master/CHANGELOG.md#630-2021-03-23
  • reload test environment: implement test environment reload (#3369) (b95b907)
  • test runner api: killedBy is always an array (#3187) (c257966)

Performance Improvements

BREAKING CHANGES

  • checker-api: The check method of checker plugins now receives a group of mutants and should provide a CheckResult per mutant id.
  • html reporter: Configuration option htmlReporter.baseDir is deprecated and will be removed in a later version. Please use htmlReporter.fileName instead.
  • esm config: Exporting a function (using module.exports = function(config) {}) from your stryker.conf.js file is no longer supported. This was already deprecated but now will give an error.
  • esm: StrykerJS is now a pure ESM. Please read this.
  • esm: Node 12.20 is now the min version.
  • esm: Karma v6.3 is now the min supported karma version for @stryker-mutator/karma-runner, since that version added support for async config loading
  • esm: The @stryker-mutator/jamsine-runner now requires jasmine@3.10 or higher.
  • esm: The @stryker-mutator/mocha-runner now requires mocha@7.2 or higher.
  • reload test environment: Test runner plugins must provide TestRunnerCapabilities by implementing the capabilities method.

Readme

Source

Mutation testing badge Build Status Slack Chat

Stryker

StrykerJS API

This is the repository for maintaining the API of the StrykerJS mutation testing framework. Plugin creators should depend on this API rather than on the main Stryker repository directly.

Extension use cases

You can extend Stryker in a number of ways.

  1. Create your own Mutator
  2. Create a custom Reporter
  3. Create a TestFramework for a test framework
  4. Create a TestRunner to bridge the gap between your test runner and Stryker
  5. Create a custom way of configuring Stryker by creating an OptionsEditor

All extension points work in the same basic way.

  1. Create a constructor function (or class)
  2. Register the constructor function to the correct Factory.

For more info, please take a look at the Stryker handbook.

Keywords

FAQs

Last updated on 02 Mar 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc