PHPackages                             org\_heigl/junitdiff - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. org\_heigl/junitdiff

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

org\_heigl/junitdiff
====================

Create a diff between 2 junit-files

0.5.0(9y ago)265144MITPHPPHP ^5.5||^7.0CI failing

Since Jun 14Pushed 5y ago3 watchersCompare

[ Source](https://github.com/heiglandreas/JUnitDiff)[ Packagist](https://packagist.org/packages/org_heigl/junitdiff)[ RSS](/packages/org-heigl-junitdiff/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (20)Used By (0)

[![Build Status](https://camo.githubusercontent.com/dba9d41ede330b2497359c50ca535afd6e771e8c440a0acc6fa6701afc976e1a/68747470733a2f2f7472617669732d63692e6f72672f686569676c616e64726561732f4a556e6974446966662e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/heiglandreas/JUnitDiff)[![Code Climate](https://camo.githubusercontent.com/b7475f8ab4187c9ec54815166408520a4b94e51459e32ab0a95fb7f53c7cd9a4/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686569676c616e64726561732f4a556e6974446966662f6261646765732f6770612e737667)](https://codeclimate.com/github/heiglandreas/JUnitDiff)[![Test Coverage](https://camo.githubusercontent.com/5f30bfbf49504807820525a08f58b16bd9da2c15733642a405d1b600d494fc4e/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f686569676c616e64726561732f4a556e6974446966662f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/heiglandreas/JUnitDiff/coverage)[![Coverage Status](https://camo.githubusercontent.com/99dff04b440b1001c21bf21841841c062aa1037f578ceb64cb1de5fc38170c3e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f686569676c616e64726561732f4a556e6974446966662f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/heiglandreas/JUnitDiff?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/40d0dd2c0b5a6a9be9ef3b58e1f796b3100206a49d1495d680d70e5640f785b3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f686569676c616e64726561732f4a556e6974446966662f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/heiglandreas/JUnitDiff/?branch=master)[![Codacy Badge](https://camo.githubusercontent.com/587e25b82ab3693c9fe5d6abdde1709c4cb2825a0b6aff3ce729b1f1c7409091/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3161326531646234333135663432656662373930353665336636633662636262)](https://www.codacy.com/app/github_70/JUnitDiff?utm_source=github.com&utm_medium=referral&utm_content=heiglandreas/JUnitDiff&utm_campaign=Badge_Grade)[![SensioLabsInsight](https://camo.githubusercontent.com/18937e8757dfb56eb38a6765f1e2f563ce8788bfc2a3aed91708e9a4e1a35417/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34366336666130632d666366642d343638662d383265312d3263323332353665316364362f6d696e692e706e67)](https://insight.sensiolabs.com/projects/46c6fa0c-fcfd-468f-82e1-2c23256e1cd6)

[![Latest Stable Version](https://camo.githubusercontent.com/50ab5dcf37435c35e6e27e299faa772a0c96471734ee74d23c643f5f40f451ab/68747470733a2f2f706f7365722e707567782e6f72672f6f72675f686569676c2f6a756e6974646966662f762f737461626c65)](https://packagist.org/packages/org_heigl/junitdiff)[![Total Downloads](https://camo.githubusercontent.com/e8d72018fc85248c7cd82fcbbcc3bc347ee82c2cfbc0bcd2e9193d866b390a00/68747470733a2f2f706f7365722e707567782e6f72672f6f72675f686569676c2f6a756e6974646966662f646f776e6c6f616473)](https://packagist.org/packages/org_heigl/junitdiff)[![License](https://camo.githubusercontent.com/431b3b986e9778e94c6c30103becb73b5e6d655a7162b11ba2024f64d1d3e2eb/68747470733a2f2f706f7365722e707567782e6f72672f6f72675f686569676c2f6a756e6974646966662f6c6963656e7365)](https://packagist.org/packages/org_heigl/junitdiff)[![Dependency Status](https://camo.githubusercontent.com/f69b1f61ccafbffe498bf26f975e6287630efd167bf7cdf0d57388d617e7c392/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3537363635383232303733353430303034313531383562612f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/5766582207354000415185ba)[![composer.lock](https://camo.githubusercontent.com/8e01cae257045dd933662dfacca5e680a7d494620a52d827b83f7d8fbe8651f2/68747470733a2f2f706f7365722e707567782e6f72672f6f72675f686569676c2f6a756e6974646966662f636f6d706f7365726c6f636b)](https://packagist.org/packages/org_heigl/junitdiff)

JUnitDiff
=========

[](#junitdiff)

A small CLI to check which tests have changed between test runs.

This software is in an early alpha-stage. PRs and improvement-ideas are more than welcome.

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

[](#installation)

JUnitDiff can be installed in one of the two following ways:

### composer.

[](#composer)

Run this in your projects root-folder to include JUnitDiff as development-dependency

```
$ composer global require --dev org_heigl/junitdiff
```

### Phar

[](#phar)

Download the latest release as PHAR-file from the [release-page](https://github.com/heiglandreas/JUnitDiff/releases/).

The releases are signed using the JUNitDiff GPG-Key with ID AE11B9CEBADB342A and Fingerprint `A84C BFAC 7147 9C6C E37E FF47 AE11 B9CE BADB 342A`.

You can verify the phar-file using these commands:

```
gpg --keyserver pgp.mit.edu --recv-key 0xAE11B9CEBADB342A
gpg --fingerprint AE11B9CEBADB342A
gpg --verify junitdiff.phar.asc junitdiff.phar
```

Feel free to rename the file `junitdiff.phar` to `junitdiff` for easier execution.

Usage
-----

[](#usage)

JUnitDiff compares two JUnit log files which can be generated with e.g. `phpunit`.

```
$ phpunit --log-junit logfile.xml
```

When you have two JUnit log files from two different test runs available you can check which tests have changed between those with `junitdiff`.

```
$ php junitdiff.diff compare
```

An example output might be:

```
[o] Test MyTest::testStoringIdWorks changed from success to error
[+] New Test MyTest::testStoringIdWorksBetter with data set #7
[-] Removed Test MyTest::testStoringIdWorksBest
```

Caveat
------

[](#caveat)

PHPUnit adds information about skipped or ignored tests into the JUnit-lof file starting with PHPUnit 6.0! So files created with a previous version do not provide information about skipped or ignored tests. ([Thanks to Sebastian Bergmann for that info!](https://github.com/heiglandreas/JUnitDiff/issues/3)) Until [Issue 3](https://github.com/heiglandreas/JUnitDiff/issues/3)is resolved they will **not** be shown in the output! But as they are ignored or skipped and therefore not executed they are just like not existing tests at all, so it shouldn't be an issue.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.7% 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 ~22 days

Recently: every ~2 days

Total

11

Last Release

3398d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ae5183aaad2bc7453230704bd6991dc6ccbcd6e775c6a29efdc94350a69f247?d=identicon)[heiglandreas](/maintainers/heiglandreas)

---

Top Contributors

[![heiglandreas](https://avatars.githubusercontent.com/u/91998?v=4)](https://github.com/heiglandreas "heiglandreas (84 commits)")[![be-heiglandreas](https://avatars.githubusercontent.com/u/60882198?v=4)](https://github.com/be-heiglandreas "be-heiglandreas (11 commits)")[![raphaelstolt](https://avatars.githubusercontent.com/u/48225?v=4)](https://github.com/raphaelstolt "raphaelstolt (6 commits)")[![ChDeinert](https://avatars.githubusercontent.com/u/5580498?v=4)](https://github.com/ChDeinert "ChDeinert (4 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (3 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![Jean85](https://avatars.githubusercontent.com/u/6729988?v=4)](https://github.com/Jean85 "Jean85 (1 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/org-heigl-junitdiff/health.svg)

```
[![Health](https://phpackages.com/badges/org-heigl-junitdiff/health.svg)](https://phpackages.com/packages/org-heigl-junitdiff)
```

###  Alternatives

[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

4743.5k10](/packages/phel-lang-phel-lang)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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