stryker-cli

Command-line interface (CLI) for Stryker, the JavaScript mutation testing framework

Apache-2.0 16 个版本
安装
npm install stryker-cli
yarn add stryker-cli
pnpm add stryker-cli
bun add stryker-cli
README

[!CAUTION] Deprecation Warning: stryker-cli is deprecated and will no longer receive updates or support.

Instead running and installing Stryker can now be achieved fully through stryker-js.

For guidance and documentation, visit: https://stryker-mutator.io/docs/stryker-js/getting-started/









Build Status Gitter

Stryker

Stryker Command-Line Interface

This is the command-line interface (CLI) for Stryker, the JavaScript mutation testing framework.

If you plan on using Stryker in more projects, the Stryker-CLI is the easiest way to install, configure and run Stryker for your project.

Installation

The Stryker-CLI can be easily installed using NPM.

$ npm install -g stryker-cli

Please always install the Stryker-CLI globally with -g or --global. The Stryker-CLI does not include a copy of Stryker itself. Instead, it needs your local Stryker installation (i.e. the Stryker installation contained in your project's node_modules folder). If you don't have Stryker installed yet, the Stryker-CLI will help you with your Stryker installation. If you want to use stryker directly from npm scripts, feel free to do so without the Stryker-CLI. The Stryker-CLI's only task is to make Stryker more easy to use.

Usage

The Stryker-CLI works by passing received commands to your local Stryker installation. If you don't have Stryker installed yet, the Stryker-CLI will help you with your Stryker installation. This method allows us to provide additional commands with updates of Stryker itself.

For example, you can kick off mutation testing using:

$ stryker run

Please always execute the Styker-CLI commands from your project's root directory. Although we are able to find your local Stryker installation in parent folders, running Stryker from a different folder than your project's root directory may result in unexpected behavior.

More

To list all of the functionality available for Stryker through the Stryker-CLI, please execute the help command.

$ stryker --help
版本列表
1.1.0 2025-10-04
1.0.2 2021-06-11
1.0.1 2021-04-29
1.0.0 2019-02-13
0.2.0 2018-07-20
0.1.3 2017-10-16
0.1.2 2017-06-17
0.1.0 2017-06-08
0.0.9 2017-04-26
0.0.8 2017-01-30
0.0.7 2017-01-29
0.0.5 2017-01-29
0.0.4 2017-01-29
0.0.3 2017-01-29
0.0.2 2017-01-28
0.0.1 2017-01-28