项目作者: stryker-mutator

项目描述 :
Mutation testing for JavaScript and friends
高级语言: TypeScript
项目地址: git://github.com/stryker-mutator/stryker-js.git
创建时间: 2016-02-12T13:14:28Z
项目社区:https://github.com/stryker-mutator/stryker-js

开源协议:Apache License 2.0

下载


Mutation testing badge
Build Status
@stryker-mutator/core"">NPM
@stryker-mutator/core.svg"">Node version
Slack Chat

Stryker

StrykerJS

Professor X: For someone who hates mutants… you certainly keep some strange company.
William Stryker: Oh, they serve their purpose… as long as they can be controlled.

Welcome to StrykerJS’s monorepo. This is where all official stryker packages are maintained.
If you’re new to monorepos: don’t be scared. You’ll find the packages in the packages folder.

If you’re interested in why we chose a monorepo, please read babeljs’s design document about monorepos. We use it for the same reasons as they do.

Introduction

For an introduction to mutation testing and Stryker’s features, see stryker-mutator.io.

Getting started

Please follow the quickstart on the website.

For small js projects, you can try the following command:

  1. npm install --save-dev @stryker-mutator/core
  2. # Only for small projects:
  3. npx stryker run

It will run stryker with default values:

  • Uses npm test as your test command
  • Searches for files to mutate in the lib and src directories

Usage

  1. $ npx stryker <command> [options] [configFile]

See usage on stryker-mutator.io

Supported mutators

See our website for the list of currently supported mutators.

Configuration

See configuration on stryker-mutator.io.