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

4940↓33.3%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 1mo 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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity33

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

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpspec/phpspec

Specification-oriented BDD framework for PHP 7.1+

1.9k36.7M3.1k](/packages/phpspec-phpspec)

PHPackages © 2026

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