PHPackages                             seec/behat-magento2-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. seec/behat-magento2-extension

ActiveBehat-extension[Testing &amp; Quality](/categories/testing)

seec/behat-magento2-extension
=============================

Magento2 extension for Behat

1.0.1(2y ago)052MITPHPPHP ^8.1CI failing

Since Aug 3Pushed 9mo agoCompare

[ Source](https://github.com/bytes-commerce/behat-magento2-extension)[ Packagist](https://packagist.org/packages/seec/behat-magento2-extension)[ Docs](https://github.com/nopenopenope/BehatMagento2Extension)[ RSS](/packages/seec-behat-magento2-extension/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (24)Versions (3)Used By (0)

Behat Magento2 Extension
========================

[](#behat-magento2-extension)

[![License](https://camo.githubusercontent.com/79b760e774ade446c5d125fc0f00775e082d4bba2ae4d2b304b159ff110311d5/68747470733a2f2f706f7365722e707567782e6f72672f736565632f62656861742d6d6167656e746f322d657874656e73696f6e2f6c6963656e7365)](https://packagist.org/packages/seec/behat-magento2-extension)[![Latest Stable Version](https://camo.githubusercontent.com/07a22243983e6dd5664e4f4c1ef70b9121538980d094a01fa7d5834b4c9ded84/68747470733a2f2f706f7365722e707567782e6f72672f736565632f62656861742d6d6167656e746f322d657874656e73696f6e2f76657273696f6e)](https://packagist.org/packages/seec/behat-magento2-extension)[![Build Status](https://github.com/nopenopenope/BehatMagento2Extension/actions/workflows/ci.yml/badge.svg)](https://github.com/nopenopenope/BehatMagento2Extension/actions/workflows/ci.yml/badge.svg)

This is a fork of the [BehatMagentoExtension](https://github.com/tkotosz/BehatMagento2Extension), which is compatible with PHP8.1 and greater. This should ensure successful end-to-end testing of Magento 2 projects.

The `BehatMagento2Extension` provides a custom service container for Behat which allows to inject Magento services into Behat Contexts and Behat helper services.

Installation
------------

[](#installation)

The recommended installation method is through [Composer](https://getcomposer.org):

```
composer require seec/behat-magento2-extension
```

Usage
-----

[](#usage)

In order to bootstrap Magento2 into your Behat suite, some modifications to the used behat.yml are required.

**Note**: If you use the Hooks provided by this package, your Magento Database will be purged and refilled with your fixtures after each individual test. This adds extra time to the execution but leaves your database also with DUMMY data. Do *not* use the hooks if you want to keep your database intact. Do *not* use it on a production server if you don't know what you are doing.

Testing
-------

[](#testing)

If you want to contribute to this module, make sure to run tests locally before committing. Docker Compose Containers are set-up to run all tests for all PHP versions automatically, so testing is very easy.

```
$ cp .env.dist .env // make sure to add your keys to the .env file otherwise testing will not work!
$ docker compose build
$ docker compose up -d
$ docker compose exec php sh
$ install-magento
$ install-extension
$ cd /var/www/html/vendor/seec/behat-magento2-extension
$ php vendor/bin/behat
```

Code Quality
------------

[](#code-quality)

We aim for a unified code style; thus we enforce ECS and PHPStan onto our code. Make sure to run the following commands before committing:

```
$ php vendor/bin/ecs check src/ tests/ features/ --fix
$ php vendor/bin/phpstan analyse src/ --level=8
$ php vendor/bin/phpstan analyse features/ --level=8
$ php vendor/bin/phpstan analyse tests/ --level=5
```

Documentation
-------------

[](#documentation)

The official documentation is available [here](https://behat-magento-2-extension.readthedocs.io/).

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance41

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.2% 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 ~8 days

Total

2

Last Release

1056d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ecc09b9aec2e66ff72e4e7f5565a150845eb4a47935ecfdeb81725cd392be60?d=identicon)[bytes-commerce](/maintainers/bytes-commerce)

---

Top Contributors

[![bytes-max](https://avatars.githubusercontent.com/u/6654389?v=4)](https://github.com/bytes-max "bytes-max (32 commits)")[![tkotosz](https://avatars.githubusercontent.com/u/4903365?v=4)](https://github.com/tkotosz "tkotosz (4 commits)")[![Polar77](https://avatars.githubusercontent.com/u/14257763?v=4)](https://github.com/Polar77 "Polar77 (1 commits)")[![sprabhakar96](https://avatars.githubusercontent.com/u/62231869?v=4)](https://github.com/sprabhakar96 "sprabhakar96 (1 commits)")

---

Tags

BDDTDDmagentoBehatmagento2

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/seec-behat-magento2-extension/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[behat/behat

Scenario-oriented BDD framework for PHP

4.0k101.8M2.2k](/packages/behat-behat)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k251.7M11.5k](/packages/symfony-framework-bundle)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k185.6M2.3k](/packages/symfony-security-bundle)[bex/behat-magento2-extension

Magento2 extension for Behat

11113.0k](/packages/bex-behat-magento2-extension)[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8064.7M49](/packages/smile-elasticsuite)

PHPackages © 2026

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