jarnaiz/behat-junit-formatter

There is no license information available for the latest version (v1.3.2) of this package.

Behat 3 JUnit xml formatter

Maintainers

๐Ÿ‘ j-arnaiz

Package info

github.com/j-arnaiz/behat-junit-formatter

pkg:composer/jarnaiz/behat-junit-formatter

Statistics

Installs: 5โ€‰439โ€‰488

Dependents: 7

Suggesters: 0

Stars: 15

Open Issues: 3

v1.3.2 2016-01-26 17:05 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

Unknown License 2f80b3881e04d3cf43e05ab821c0e80675a9846d

  • Jesรบs Arnaiz <j.arnaiz.woop@gmail.com>

This package is not auto-updated.

Last update: 2026-06-21 03:34:10 UTC


README

Prerequisites

This extension requires:

  • PHP 5.3.x or higher
  • Behat 3.x or higher

Install with composer:

$ composer require --dev jarnaiz/behat-junit-formatter

Basic usage

Activate the extension by specifying its class in your behat.yml:

# 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 filename

you also could use JARNAIZ_JUNIT_FILENAME and JARNAIZ_JUNIT_OUTPUTDIR env variables

Issue Submission

Feel free to Create a new issue.

Thanks to

Thanks to emuse html extension that inspired me to created this one.