PHPackages                             akimsir/junit-reports - 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. akimsir/junit-reports

ActiveLibrary[Testing &amp; Quality](/categories/testing)

akimsir/junit-reports
=====================

Manager junit tests reports for PHP

51.9k↓45.2%1PHPCI failing

Since Dec 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/akimsir/junit-reports)[ Packagist](https://packagist.org/packages/akimsir/junit-reports)[ RSS](/packages/akimsir-junit-reports/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

junit-reports
=============

[](#junit-reports)

Php manager junit tests reports

### Useful case

[](#useful-case)

codeception.dist.yml:

```
groups:
    rerunfailed: Tests/_output/rerunfailed

```

Execute all tests:

```
# produce all_results.xml
vendor/bin/codecept run

```

Then rerun only failed tests and merge with all results

```
$manager = new \JunitReports\XmlManager();

// get failed tests
$failedTests = $manager->getFailedTests('all_results.xml', __DIR__ . '/');

// rerun only failed
$rerunFailedFile = 'Tests/_output/rerunfailed';
file_put_contents($rerunFailedFile, implode(PHP_EOL, $failedTests));

```

Execute only failed:

```
# produce rerunfailed.xml
vendor/bin/codecept run -g rerunfailed

```

Then merge:

```
$this->parallelRun(['rerunfailed' => []], 'Rerun failed tests');

// merge results with replace
$manager->mergeWithReplace('all_results.xml', 'rerunfailed.xml');

```

### Run with Docker

[](#run-with-docker)

docker pull akimsir/junit-reports

docker run -ti --rm -v /path/to/results.xml:/project/results.xml akimsir/junit-reports "php run.php getFailedTestCasesAsJson /project/results.xml"

Result is the list of failed tests with parameters:

```
[
    {
        "file": "/code/Tests/functional/Backend/VerifiedCest.php",
        "name": "acceptRequest",
        "class": "Tests\\Functional\\Backend\\VerifiedCest",
        "feature": "Одобрить заявку для компании",
        "assertions": 17,
        "time": 28.493741
    }
]

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 82.1% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/90e9163de19495a4b6ff550789b811d347ee8e502b39e0ed639a8840debbaf10?d=identicon)[akimsir](/maintainers/akimsir)

![](https://www.gravatar.com/avatar/d0f881c1c87c535853882ff0682aaa55715e1374c92c7f7921f5af227799a840?d=identicon)[a-muzyka](/maintainers/a-muzyka)

---

Top Contributors

[![akimsir](https://avatars.githubusercontent.com/u/1705577?v=4)](https://github.com/akimsir "akimsir (23 commits)")[![muzyka-kolesa](https://avatars.githubusercontent.com/u/131753308?v=4)](https://github.com/muzyka-kolesa "muzyka-kolesa (5 commits)")

### Embed Badge

![Health badge](/badges/akimsir-junit-reports/health.svg)

```
[![Health](https://phpackages.com/badges/akimsir-junit-reports/health.svg)](https://phpackages.com/packages/akimsir-junit-reports)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M360](/packages/dms-phpunit-arraysubset-asserts)

PHPackages © 2026

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