0.2.7 • Published 5 months ago

@diogovcs/stryker-mutator v0.2.7

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

NX Stryker Mutator

Nx plugin for Stryker Mutator integration within a Nx Workspace.

Setup

Npm

npm install -D @diogovcs/stryker-mutator

Yarn

yarn add -D @diogovcs/stryker-mutator

Pnpm

pnpm add -D @diogovcs/stryker-mutator

Add to Workspace

nx generate @diogovcs/stryker-mutator:stryker-mutator [APPS_NAME] [...OPTIONS]

This command will generate stryker configuration for the projects. This plugin have presets set for node, nestjs and Angular applications. The available options allowed when generating an application are the following:

nametypedefaultdescription
APPS_NAMEstring-Runs stryker for the projects. Accepts a comma separated list of projects.
--presetangular OR node OR nestjs-Sets different project configurations depending on the preset chosen.

Examples

Generate stryker configurations for multiple projects:

nx generate @diogovcs/stryker-mutator:stryker-mutator my-first-project,my-second-project

Mutate

The Mutate executor can take optional parameters as the location of the stryker configuration file. Here it is an example a mutate executor configuration:

{
  "mutate": {
    "executor": "@diogovcs/stryker-mutator:mutate",
    "options": {
      "strykerConfig": "apps/my-app/stryker.config.js"
    }
  }
}

Options

nametypedefaultdescription
mutatestring-Specific pattern or file to mutate. (example: src/app.js or src/app.js:5-7).
strykerConfigstring-Path to the stryker.config.js file.
incrementalbooleanfalseStrykerJS will track the changes you make to your code and tests and only runs mutation testing on the changed code.
0.2.7

5 months ago

0.2.6

1 year ago

0.2.5

1 year ago

0.2.3

1 year ago

0.2.2

1 year ago

0.2.4

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.15

1 year ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago