Skip to content
SPECIFICTION
Get listed

Infection vs LittleDarwin

Infection

infection.github.io

LittleDarwin

aliparsai.github.io

Side by side

FigureInfectionLittleDarwin
Price from—Free
Free plan—Yes
Free trial——
Open source——
WebYes—
macOSYes—
LinuxYesYes
Plans published01
Spec score · Mutation Testing Tools7.6 (#11)8.3 (#4)
DistributionThe recommended PHAR distribution bundles PHPUnit, PhpSpec, Codeception and Testo, and the PHAR signature can be verified with the documented GPG key.The project README instructs users to install the package with `pip3 install littledarwin`.
InstallationThe maker documents PHAR, Phive, Composer, Git, and Homebrew installation methods.The documentation says to install LittleDarwin with pip and run it as a Python module.
LicenseThe project is released under the BSD-3-Clause License.The project is free software under the GNU General Public License, version 3 or later.
PurposeInfection mutates PHP source code and reports changes that a test suite fails to catch.LittleDarwin generates mutants of Java source code and runs a build command to check whether the test suite detects them.

Plans

Infection

No plans published.

Infection pricing →

LittleDarwin

  • Free and open-sourceFree

LittleDarwin pricing →

In their own words

Infection

Infection is a PHP mutation-testing library that shows which changes a test suite fails to detect. It creates mutants using predefined operators, runs tests against changed code, and records killed and escaped mutants, errors, and timeouts. Its Mutation Score Indicator measures the share of generated mutations detected by tests; it also reports Mutation Code Coverage and Covered Code Mutation Score Indicator. Infection supports PHPUnit, PhpSpec, Codeception, and Testo, and runs from the command line at a project root. Teams can run mutated tests in parallel, focus analysis on touched lines or files, and set minimum mutation-score thresholds that fail a build. The homepage describes more than 100 mutators grouped into profiles and allows custom mutators. Optional PHPStan and Mago integrations can help catch escaped mutants involving type violations, dead code, and unreachable paths. Installation options include PHAR, Phive, Composer, Git, and Homebrew. A browser playground supports trying PHP code and tests without installing the tools. Infection is free under the BSD-3-Clause license and requires PHP 8.3 or newer plus Xdebug, phpdbg, or pcov.

Visit infection.github.io

LittleDarwin

LittleDarwin is a Java mutation testing framework written in Python, available for Linux. It generates altered versions, or mutants, of Java source code, then runs a configured build command for each mutant to check whether the test suite detects the change. Its analysis has a mutation phase and a build phase, where each build is checked for success or failure. Users can select null-check or method-level mutation operators, or use all operators. The --higher-order option sets the mutation order, and the guide demonstrates second-order mutants. Project settings include a test project path and test command, build command, working directory, initial build command, cleanup commands, and build timeout. A Maven example runs `mvn clean test` for each mutant. Whitelist filters restrict analysis to selected packages or files, while blacklist filters exclude them. Generated mutants and full-analysis reports go into a LittleDarwinResults directory, and surviving mutants are reported. Installation uses pip, followed by running LittleDarwin as a Python module. The project is free under the GNU General Public License version 3 or later and is supported through donations.

Visit aliparsai.github.io