PHPackages                             yireo/magento2-codeception-utilities - 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. yireo/magento2-codeception-utilities

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

yireo/magento2-codeception-utilities
====================================

Yireo additions for Codeception

0.1.0(7y ago)83.4k2[1 PRs](https://github.com/yireo/magento2-codeception-utilities/pulls)PHPPHP ^7.1

Since May 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/yireo/magento2-codeception-utilities)[ Packagist](https://packagist.org/packages/yireo/magento2-codeception-utilities)[ Docs](https://github.com/yireo/magento2-codeception-utilities)[ RSS](/packages/yireo-magento2-codeception-utilities/feed)WikiDiscussions master Synced 2w ago

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

Yireo Codeception utilities for Magento 2
=========================================

[](#yireo-codeception-utilities-for-magento-2)

This package contains utilities for using [Codeception](https://codeception.com/) in Magento 2.

Features
--------

[](#features)

- Bootstrap your real-life Magento 2 application within Codeception;
- Base your tests on real-life data from Magento 2;

Notes on Codeception &amp; MFTF
-------------------------------

[](#notes-on-codeception--mftf)

First of all, this package assumes you have installed Magento 2 and Codeception along side each other. It also assumes both are installed as a composer-package. The bootstrap procedure expects the path of this package itself, the Magento 2 core and Composer to be found through `vendor`.

Codeception is not installed as a depenency of this package. In Magento 2.3, the Magento Functional Testing Framework (MFTF) is already installed and it ships with Codeception. Alternatively, follow the composer-documentation of Codeception. Make also sure to run the Codeception configuration procedure, so that you have a working `tests/` folder in your Magento root.

Please note that this package has zero added-value for MFTF. MFTF is about functional tests. This project assumes a separate Codeception to be used for acceptance tests.

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

[](#installation)

To install this package, use the following:

```
composer require yireo/magento2-codeception-utilities

```

Please note that this package is NOT a Magento 2 module. There is no need to enable any module here.

Magento 2 Bootstrap
-------------------

[](#magento-2-bootstrap)

Add the following to your `codeception.yml` in the Magento root:

```
extensions:
    enabled:
        - Yireo\Codeception\Extension\MagentoBootstrap

```

Once this extension is active in Codeception, it will run the Magento 2 bootstrap. The `url` within the WebDriver module is now automatically configured with the URL of your Magento 2 shop, plus the Magento bootstrap is run automatically.

Because our approach assumes the Codeception installation to be run in a local environment, this would also assume your Magento 2 developer environment is picked up with the appropriate Base URL.

Using `Utils` in your tests
---------------------------

[](#using-utils-in-your-tests)

See the `example/` folder for example CESTs to re-use information of Magento 2 within your tests. You can for instance use the utility class `\Yireo\Codeception\Utils\Product` to load a random product, so you can easily navigate to its product URL and scan for attributes.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2615d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1373981?v=4)[Yireo](/maintainers/yireo)[@yireo](https://github.com/yireo)

---

Top Contributors

[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (10 commits)")

---

Tags

magento2-module

### Embed Badge

![Health badge](/badges/yireo-magento2-codeception-utilities/health.svg)

```
[![Health](https://phpackages.com/badges/yireo-magento2-codeception-utilities/health.svg)](https://phpackages.com/packages/yireo-magento2-codeception-utilities)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1121.8M12](/packages/mollie-magento2)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68353.9k](/packages/run-as-root-magento2-prometheus-exporter)[tddwizard/magento2-fixtures

Fixture library for Magento 2 integration tests

145445.3k10](/packages/tddwizard-magento2-fixtures)[mage-os/module-automatic-translation

Automatic AI content translation for Mage-OS.

2913.9k](/packages/mage-os-module-automatic-translation)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

1512.6k](/packages/mage-os-module-inventory-reservations-grid)[opengento/module-category-import-export

This module add the capability to import and export the categories from the back-office.

1310.2k1](/packages/opengento-module-category-import-export)

PHPackages © 2026

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