PHPackages                             raneomik/infection-tester-adapter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. raneomik/infection-tester-adapter

ActiveInfection-extension

raneomik/infection-tester-adapter
=================================

Tester Adapter for Infection

v0.2.3(2mo ago)082BSD-3-ClausePHPPHP ^8.3CI passing

Since Feb 17Pushed 2mo agoCompare

[ Source](https://github.com/raneomik/infection-tester-adapter)[ Packagist](https://packagist.org/packages/raneomik/infection-tester-adapter)[ RSS](/packages/raneomik-infection-tester-adapter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (19)Versions (6)Used By (0)

Tester Test Framework Adapter for Infection
===========================================

[](#tester-test-framework-adapter-for-infection)

[![Coding Standards](https://github.com/raneomik/infection-tester-adapter/actions/workflows/cs.yaml/badge.svg)](https://github.com/raneomik/infection-tester-adapter/actions/workflows/cs.yaml)[![Mutation Testing](https://github.com/raneomik/infection-tester-adapter/actions/workflows/mutation-testing.yaml/badge.svg)](https://github.com/raneomik/infection-tester-adapter/actions/workflows/mutation-testing.yaml)[![Tests](https://github.com/raneomik/infection-tester-adapter/actions/workflows/tests.yaml/badge.svg)](https://github.com/raneomik/infection-tester-adapter/actions/workflows/tests.yaml)[![Coverage Status](https://camo.githubusercontent.com/0e126b0e41d3a0209b5175d4ccdedddcabe8eb0925a41392d5e760d80941a413/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f72616e656f6d696b2f696e66656374696f6e2d7465737465722d616461707465722f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/raneomik/infection-tester-adapter?branch=main)[![Mutation testing badge](https://camo.githubusercontent.com/cb987d8dcdde383fec8f822f3274636a9621b10babb02257ffaacf88379a701d/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742d7371756172652675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d25324672616e656f6d696b253246696e66656374696f6e2d7465737465722d616461707465722532466d61696e)](https://dashboard.stryker-mutator.io/reports/github.com/raneomik/infection-tester-adapter/main)

> *Disclaimer: AI agent experiment - chat-gpt5.2 &amp; claude sonnet 4.5 wrote ~60-75% of this project, by my lack of knowledge on this topic and lack of time to learn...**I thought it would be interesting to ask AI "Hey, I discovered [this framework](https://nette.org), and it comes with its [own testing framework](https://tester.nette.org/en). But I love Infection and its metrics to push you to test your tests, and could be cool to add an adapter to it... Are we in ? - yes, Here's your code"**(it wasn't this simple, [here's some copilot's very verbose journals &amp; reports](docs/copilot-report) for french speakers - it's a real mess, sorry, all dev problems seem to be included)**and share the result.*
>
> *The remaining ~20% was based on [PhpSpec Adapter](https://github.com/infection/phpspec-adapter) and [Codeception Adapter](https://github.com/infection/codeception-adapter). Big shoutout to Maks Rafalko &amp; Infection community for this amazing tool*

This package provides test framework adapter of [Tester](https://tester.nette.org/en) for [infection](https://infection.github.io).

[![Architecture](./docs/tester-adapter.png)](./docs/tester-adapter.png)

Installation
------------

[](#installation)

```
composer require --dev [infection/infection] raneomik/infection-tester-adapter
```

The adapter should be automatically registered in Infection's runtime through its auto-discovery mechanism.

Usage
-----

[](#usage)

Once installed, you can run Infection:

```
vendor/bin/infection # optional: --test-framework=tester
```

### Configuration

[](#configuration)

This adapter works directly with your existing Tester tests, with some limitations:

- Tester provides jUnit.xml and Clover.xml coverage reports, but Infection expects a more complete phpunit-like report. This adapter embeds transformation of Testers' reports &amp; generation during the mutation process, so it is NOT recomended to use `--skip-initial-tests` with `--coverage` options (it just results in xpath read/FQCN error, unless you are using a script which does the needed trasformation).
- [Test cases](https://tester.nette.org/en/testcase) are recommended for a better report result. But seem slower.
- other forms of tests are supported, but need namespaces to be identified by Infection and referenced in report as covering code.
- conflict with files may occur using `--debug` option and result in mutation coverge gen errors. Removing '&lt;configured tmp dir|/tmp&gt;/infection' should fix it.

No additional configuration needed, "Convention over configuration" principle. *("have tests in 'tests/' dir and bootstrap.php file in your tests root" is the main requirement)*

Infection configuration file `infection.json5.dist`.

For more information on configuring Infection, see the [Infection documentation](https://infection.github.io/guide/usage.html#Configuration).

Contributing
------------

[](#contributing)

Contributions are welcome! Please see [CONTRIBUTING.md](.github/CONTRIBUTING.md) for details.

License
-------

[](#license)

This project is licensed under the BSD 3-Clause License. See the [LICENSE](LICENSE) file for details.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance84

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

5

Last Release

84d ago

PHP version history (2 changes)v0.0.1PHP ^8.2

v0.2.3PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef442308d55301a56114936c5389fbb4ab31f3cf7ac4b9b6f3a583bc3b9f9b8c?d=identicon)[raneomik](/maintainers/raneomik)

---

Top Contributors

[![raneomik](https://avatars.githubusercontent.com/u/19893310?v=4)](https://github.com/raneomik "raneomik (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Type Coverage Yes

### Embed Badge

![Health badge](/badges/raneomik-infection-tester-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/raneomik-infection-tester-adapter/health.svg)](https://phpackages.com/packages/raneomik-infection-tester-adapter)
```

###  Alternatives

[infection/infection

Infection is a Mutation Testing framework for PHP. The mutation adequacy score can be used to measure the effectiveness of a test set in terms of its ability to detect faults.

2.2k26.2M1.8k](/packages/infection-infection)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19562.3M1.3k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
