Skip to content

Garethp/intellij-stryker-run-config

Repository files navigation

IntelliJ Stryker Plugin

Integrates Stryker-JS with the intellij test runner to give you native test runner for Mutation Testing. If you want to build the plugin yourself and get access to paid features without actually paying, go into com.blackfireweb.stryker.licencing and requiresPurchase to false. The resulting build will unlock all paid features. That being said, if you find this plugin saves you time, please consider buying the licence.

Build

./gradlew buildPlugin

Run

./gradlew runIdea

Reporter Setup (Only if Stryker is < 4.0)

When your version of Stryker is < 4.0, this plugin needs a reporter added to Stryker, stryker-intellij-reporter. If you have version 4.0 or newer, this plugin provides the reporter automatically, so there's no need to do anything.

So if you have a version older than 4.0, first you need to install it as a dependency:

npm i stryker-intellij-reporter -D

And then it needs to be added as a plugin to the Stryker Config:

{
    "plugins": [
        "@stryker-mutator/*",
        "stryker-intellij-reporter"
    ]
}

Mutating Files

Right click a file, or it's corresponding test file, then select "Mutate [filename]"

Runner limitations:
  1. At the moment you can't re-run failed mutations
  2. You can't run a specific mutant yet
  3. You can't debug mutations

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages