Mutation testing tool for PHP.
According to Wikipedia:
Mutation testing (or Mutation analysis or Program mutation) evaluates the quality of software tests. Mutation testing involves modifying a program's source code or byte code in small ways.
MutaTesting supports http://phpunit.de/manual/current/en/index.html and http://docs.atoum.org/. You can create an adapter for any PHP testing framework.
## Requirements
You only need PHP 5.3 . No specific PHP extension is required...
Edit your composer.json:
"require": {
"halleck45/mutatesting" : "master"
}And run Composer:
php composer.phar update halleck45/mutaTesting./bin/mutatesting {tool} {binary} {test directory}Example for PHPUnit:
./bin/mutatesting phpunit phpunit.phar myTestFolderExample for atoum:
./bin/mutatesting atoum mageekguy.atoum.phar myTestFolderNote that you don't need to use the -d or -f option with atoum...
To have a html report file, tou need to use the --format option.
Remember to give also a --out option for the destination directory.
./bin/mutatesting phpunit phpunit.phar myTestFolder --format=html --out=./logFolderIf your tests need options, you can pass them with --options
./bin/mutatesting phpunit phpunit.phar myTestFolder --options="-c phpunit.xml"You can change the number of parallelized tests with the processes options :
./bin/mutatesting phpunit phpunit.phar myTestFolder --processes=10Copyright (c) 2013 Jean-François Lépine. See LICENSE for details.
