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. [Testing &amp; Quality](/categories/testing)
4. /
5. raneomik/infection-tester-adapter

ActiveInfection-extension[Testing &amp; Quality](/categories/testing)

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

Tester Adapter for Infection

v0.2.3(4mo ago)097[1 PRs](https://github.com/raneomik/infection-tester-adapter/pulls)BSD-3-ClausePHPPHP ^8.3CI passing

Since Feb 17Pushed 1w 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 yesterday

READMEChangelog (6)Dependencies (19)Versions (7)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 84% of packages

Maintenance88

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

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

130d 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.2k28.9M2.4k](/packages/infection-infection)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[drupal/core

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

21866.0M1.7k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)

PHPackages © 2026

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