PHPackages                             moodlerooms/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. moodlerooms/behat-junit-extension

Abandoned → [blackboard-open-source/behat-junit-extension](/?search=blackboard-open-source%2Fbehat-junit-extension)Project[Testing &amp; Quality](/categories/testing)

moodlerooms/behat-junit-extension
=================================

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

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

Since Mar 8Pushed 5y ago4 watchersCompare

[ Source](https://github.com/moodlerooms/behat-junit-extension)[ Packagist](https://packagist.org/packages/moodlerooms/behat-junit-extension)[ RSS](/packages/moodlerooms-behat-junit-extension/feed)WikiDiscussions master Synced 3w ago

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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

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

2131d ago

Major Versions

1.0.0 → 2.0.02018-09-10

2.0.0 → 3.0.02020-08-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ad73f7bd03178513977497215e3755b5b9f14977fb1537379e2a9a1d8a3de5a?d=identicon)[blackboard-open-source](/maintainers/blackboard-open-source)

---

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/moodlerooms-behat-junit-extension/health.svg)

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

###  Alternatives

[drupal/drupal-extension

Drupal extension for Behat

21215.5M166](/packages/drupal-drupal-extension)[imbo/behat-api-extension

API extension for Behat

1092.6M9](/packages/imbo-behat-api-extension)[sensiolabs/behat-page-object-extension

Page object extension for Behat

1166.6M28](/packages/sensiolabs-behat-page-object-extension)[wp-cli/wp-cli-tests

WP-CLI testing framework

423.0M129](/packages/wp-cli-wp-cli-tests)[dmore/behat-chrome-extension

Behat extension for controlling Chrome without Selenium

3313.6M401](/packages/dmore-behat-chrome-extension)[dvdoug/behat-code-coverage

Generate Code Coverage reports for Behat tests

623.8M47](/packages/dvdoug-behat-code-coverage)

PHPackages © 2026

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