Download the PHP package testmonitor/junit-xml-parser without Composer
On this page you can find all versions of the php package testmonitor/junit-xml-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download testmonitor/junit-xml-parser
More information about testmonitor/junit-xml-parser
Files in testmonitor/junit-xml-parser
Package junit-xml-parser
Short Description This package provides a very basic, convenient parser for JUnit XML reports.
License MIT
Informations about the package junit-xml-parser
JUnit XML Parser
This package provides a very basic, convenient parser for JUnit XML reports.
Table of Contents
- Installation
- Usage
- Examples
- Tests
- Changelog
- Contributing
- Credits
- License
Installation
To install the client you need to require the package using composer:
$ composer require testmonitor/junit-xml-parser
Use composer's autoload:
You're all set up now!
Usage
Include the parser in your project:
Examples
Below are some examples demonstrating how to use the JUnit XML Parser to extract and process test results.
Parsing a JUnit XML file
This example shows how to parse a JUnit XML report and retrieve test suite and test case information.
Processing Failures and Skipped Tests
This example demonstrates how to identify and handle failed and skipped test cases.
Handling Properties
This example demonstrates how to retrieve the property keys and values:
Processing System Out and System Err
This example demonstrates how to retrieve the information for the system-out and system-err tags:
Extracting Execution Time and Timestamp
JUnit XML reports include execution times and timestamps, which can be accessed as shown below.
Tests
The package contains integration tests. You can run them using PHPUnit.
$ vendor/bin/phpunit
Changelog
Refer to CHANGELOG for more information.
Contributing
Refer to CONTRIBUTING for contributing details.
Credits
- Thijs Kok - Lead developer - ThijsKok
- Stephan Grootveld - Developer - Stefanius
- Frank Keulen - Developer - FrankIsGek
License
The MIT License (MIT). Refer to the License for more information.