2017 © Pedro Peláez
 

library junitdiff

Create a diff between 2 junit-files

image

org_heigl/junitdiff

Create a diff between 2 junit-files

  • Monday, April 3, 2017
  • by heiglandreas
  • Repository
  • 3 Watchers
  • 23 Stars
  • 140 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 19 Versions
  • 4 % Grown

The README.md

Build Status Code Climate Test Coverage Coverage Status Scrutinizer Code Quality Codacy Badge SensioLabsInsight, (*1)

Latest Stable Version Total Downloads License Dependency Status composer.lock, (*2)

JUnitDiff

A small CLI to check which tests have changed between test runs., (*3)

This software is in an early alpha-stage. PRs and improvement-ideas are more than welcome., (*4)

Installation

JUnitDiff can be installed in one of the two following ways:, (*5)

composer.

Run this in your projects root-folder to include JUnitDiff as development-dependency, (*6)

$ composer global require --dev org_heigl/junitdiff

Phar

Download the latest release as PHAR-file from the release-page., (*7)

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

You can verify the phar-file using these commands:, (*9)

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., (*10)

Usage

JUnitDiff compares two JUnit log files which can be generated with e.g. phpunit., (*11)

$ 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., (*12)

$ php junitdiff.diff compare </path/to/first/logfile> </path/to/last/logfile>

An example output might be:, (*13)

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

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!) Until Issue 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., (*14)

The Versions

03/04 2017

dev-master

9999999-dev

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

27/01 2017

0.5.0

0.5.0.0

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

23/01 2017

dev-feature/adaptReadmeToPhar

dev-feature/adaptReadmeToPhar

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

23/01 2017

0.4.0

0.4.0.0

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

20/01 2017

0.3.4

0.3.4.0

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

18/01 2017

0.3.3

0.3.3.0

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

18/01 2017

0.3.2

0.3.2.0

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

18/01 2017

0.3.1

0.3.1.0

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

19/06 2016

dev-feature/fixIssues

dev-feature/fixIssues

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

18/06 2016

dev-hotfix/removeSomeTechDept

dev-hotfix/removeSomeTechDept

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

18/06 2016

dev-feature/addCoveralls

dev-feature/addCoveralls

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

17/06 2016

0.3.0

0.3.0.0

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

16/06 2016

0.2.1

0.2.1.0

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

16/06 2016

dev-feature/automateTagging

dev-feature/automateTagging

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

15/06 2016

dev-hotfix/validateInputFiles

dev-hotfix/validateInputFiles

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

15/06 2016

dev-feature/addVersionString

dev-feature/addVersionString

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

15/06 2016

0.2.0

0.2.0.0

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

The Development Requires

14/06 2016

0.1.1

0.1.1.0

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires

 

14/06 2016

0.1.0

0.1.0.0

Create a diff between 2 junit-files

  Sources   Download

MIT

The Requires