PHPackages                             open-lms-open-source/behat-junit-extension - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. open-lms-open-source/behat-junit-extension

ActiveProject[Testing &amp; Quality](/categories/testing)

open-lms-open-source/behat-junit-extension
==========================================

Behat extension that reports with the JUnit format and is compatible with Moodle reruns.

3.0.0(5y ago)04.1kGPL-3.0PHPPHP &gt;=5.4.0CI failing

Since Mar 8Pushed 5y ago4 watchersCompare

[ Source](https://github.com/open-lms-open-source/behat-junit-extension)[ Packagist](https://packagist.org/packages/open-lms-open-source/behat-junit-extension)[ RSS](/packages/open-lms-open-source-behat-junit-extension/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (5)Versions (4)Used By (0)

Introduction
============

[](#introduction)

Behat extension that reports with the JUnit format and is compatible with Moodle reruns.

Install
=======

[](#install)

Install with Composer:

```
composer require --dev open-lms-open-source/behat-junit-extension

```

Usage
=====

[](#usage)

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

```
default:
    suites:
    ...

    extensions:
        BehatJUnitExtension\Extension:
            baseDir: /path/to/moodle
    ...
```

This is how you would do the above via Moodle's config file:

```
$CFG->behat_config = [
    'default' => [
        'extensions' => [
            'BehatJUnitExtension\Extension' => [
                'baseDir' => __DIR__,
            ]
        ]
    ],
];
```

Be sure to call Behat with the formatter:

```
behat -f moodle_junit -o reports_dir

```

Configuration
=============

[](#configuration)

- `baseDir` - (Optional) Just shortens JUnit XML file names.

Credits
=======

[](#credits)

Heavily inspired by:

- [Behat's](https://github.com/Behat/Behat) own JUnit formatter.
- [behat-junit-formatter](https://github.com/j-arnaiz/behat-junit-formatter)

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 95.5% 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 ~633 days

Total

3

Last Release

2083d ago

Major Versions

1.0.0 → 2.0.02018-09-10

2.0.0 → 3.0.02020-08-26

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1523388?v=4)[David Castro](/maintainers/dvdcastro)[@dvdcastro](https://github.com/dvdcastro)

---

Top Contributors

[![polothy](https://avatars.githubusercontent.com/u/634657?v=4)](https://github.com/polothy "polothy (21 commits)")[![dvdcastro](https://avatars.githubusercontent.com/u/1523388?v=4)](https://github.com/dvdcastro "dvdcastro (1 commits)")

---

Tags

behatbehat-extensionbehat3moodlemoodleBehatjunit

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/open-lms-open-source-behat-junit-extension/health.svg)

```
[![Health](https://phpackages.com/badges/open-lms-open-source-behat-junit-extension/health.svg)](https://phpackages.com/packages/open-lms-open-source-behat-junit-extension)
```

###  Alternatives

[sensiolabs/behat-page-object-extension

Page object extension for Behat

1166.5M27](/packages/sensiolabs-behat-page-object-extension)[laracasts/behat-laravel-extension

Laravel extension for Behat

2611.3M12](/packages/laracasts-behat-laravel-extension)[imbo/behat-api-extension

API extension for Behat

1082.5M9](/packages/imbo-behat-api-extension)[dmore/behat-chrome-extension

Behat extension for controlling Chrome without Selenium

3313.2M357](/packages/dmore-behat-chrome-extension)[dvdoug/behat-code-coverage

Generate Code Coverage reports for Behat tests

593.6M37](/packages/dvdoug-behat-code-coverage)[bex/behat-extension-driver-locator

Driver locator tool for behat extensions

385.2M4](/packages/bex-behat-extension-driver-locator)

PHPackages © 2026

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