Yireo_LiveTestRunner

PHP 8.2 - 8.5
Magento 2.4.6 - 2.4.9
CSP Yes
License OSL-3.0
Latest Release none

This module allows you to run PHPUnit-based live tests in Magento 2. Normally, PHPUnit-based code focuses on creating unit tests, integration tests, functional tests and other. But what if you simply want to debug an issue in a copy of a production site? Not a controlled clean environment, but the real deal. To guarantee that certain functionality remains, testing makes sense here as well. Hence the dubbed live tests.

A live test is nothing more than a PHPUnit test, but including the Magento application (including database, caching and other) as a bootstrap. With this, you can fetch products from the database and guarantee that their

Usage

Create your own tests within a folder Test/Live (or something else). Next, run the following command, pointing towards your testing folder:

bin/magento yireo_livetest:run app/code/Foo/Bar/Test/Live

Done.

Tests could be extending upon the parent classes \Yireo\LiveTestRunner\TestCase\CatalogTestCase and \Yireo\LiveTestRunner\TestCase\GenericTestCase, but only if you want to: You can make any assertions using any library out there. This module simply makes sure the Magento bootstrap of your actual dev environment is run.

Current status

Magento 2 Integration Tests success
Playwright test success
Magento 2 Unit Tests success
Magento 2 DI compilation failure
Magento 2 Static Tests success
WARNING: This module has no releases yet. If you want to use it, make sure to add the version @dev to the composer command.

Support

For getting support, create an Issue under the following project URL:

https://github.com/yireo/Yireo_LiveTestRunner

Composer details
Magento module name
Yireo_LiveTestRunner
Composer name
yireo/magento2-live-test-runner
Composer version
No release yet
Default branch
master
Requirements
magento/framework: ^103.0
phpunit/phpunit: ^8.0 | ^9.0 | ^10.0
php: >=8.2 <8.6
Releases
Changelog

Last modified: October 17, 2026