https://github.com/j-arnaiz/behat-junit-formatter
Behat 3 JUnit xml formatter
https://github.com/j-arnaiz/behat-junit-formatter
Last synced: 4 months ago
JSON representation
Behat 3 JUnit xml formatter
- Host: GitHub
- URL: https://github.com/j-arnaiz/behat-junit-formatter
- Owner: j-arnaiz
- License: gpl-2.0
- Created: 2015-07-04T15:54:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-10-28T07:49:09.000Z (over 3 years ago)
- Last Synced: 2024-08-18T08:16:05.678Z (6 months ago)
- Language: PHP
- Size: 26.4 KB
- Stars: 16
- Watchers: 2
- Forks: 21
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Installation
### Prerequisites
This extension requires:
* PHP 5.3.x or higher
* Behat 3.x or higher#### Install with composer:
```bash
$ composer require --dev jarnaiz/behat-junit-formatter
```## Basic usage
Activate the extension by specifying its class in your `behat.yml`:
```json
# behat.yml
default:
suites:
...extensions:
jarnaiz\JUnitFormatter\JUnitFormatterExtension:
filename: report.xml
outputDir: %paths.base%/build/tests
...
```Be sure to call behat with the formatter:
behat -f junit
## Configuration
* `filename` - filename
* `outputDir` - dir to be created filenameyou also could use JARNAIZ_JUNIT_FILENAME and JARNAIZ_JUNIT_OUTPUTDIR env variables
## Issue Submission
Feel free to [Create a new issue](https://github.com/j-arnaiz/behat-junit-formatter/issues/new).
## Thanks to
Thanks to emuse html extension that inspired me to created this one.