/mutrex

MutRex - A generator of fault detecting strings for regular expressions

Primary LanguageJava

MutRex: a mutation-based generator of fault detecting strings for regular expressions

mutrex logo

Web interface: http://foselab.unibg.it/mutrex/

There is also a simple CLI version. You can download the jar from here https://github.com/fmselab/mutrex/raw/master/mutrex.cli/mutrex.jar

$ java -jar  mutrex.jar "aB([a-z]*)"
tests for regular expression aB([a-z]*)
"aBb" (CONF) kills [aB((\a|\z))*]
"AB" (REJECT) kills [AB([\a-\z])*, (\a|\A)\B([\a-\z])*]
"ab" (REJECT) kills [\a(\B|\b)([\a-\z])*]
...

License

Mutrex is released under the under the terms of the BSD license. Copyright (C) Paolo Arcaini, Angelo Gargantini, Elvinia Riccobene

Build

You can build mutrex by using eclipse. Import the projects in eclipse.

Cite as:

P. Arcaini, A. Gargantini, E. Riccobene Fault‐based test generation for regular expressions by mutation in Software Testing, Verification and Reliability, March 2018 download the pdf, doi

Other publication: P. Arcaini, A. Gargantini, E. Riccobene MutRex: a mutation-based generator of fault detecting strings for regular expressions in 12th International Workshop on Mutation Analysis (Mutation 2017), Tokyo, Japan, March 13, 2017 download the pdf, doi

MutRex is used also for regular expression repairs. See here and the paper