README
Weapon regeX
Weapon regeX mutates regular expressions for use in mutation testing. It has been designed from the ground up to support Stryker Mutator. Weapon regeX is available for both JavaScript and Scala and is used in Stryker4s and StrykerJS flavors of Stryker. The JavaScript version of the library is generated from Scala using Scala.js. The generated mutant regular expressions cover human errors, such as edge cases and typos. A list of provided mutators is given below. For an introduction to mutation testing, see Stryker's website.
The current supported versions for Scala are: 2.12
and 2.13
.
Getting started
In case you want to incorporate Weapon-regeX into your project.
Scala
Add Weapon regeX to your build.sbt
:
libraryDependencies += "io.stryker-mutator" %% "weapon-regex" % weaponRegexVersion
Mutate!
import weaponregex.WeaponRegeX
import scala.util.{Try, Success, Failure}
WeaponRegeX.mutate("^abc(d+|[xyz])