Yireo Live Test Runner
yireo/magento2-live-test-runner
Runs PHPUnit-based "live" tests against a real Magento environment, booting the full application (database, caching) so developers can debug and verify behaviour on a copy of a production site.
Supported Magento versions: 2.4.9
5 installs★ 4 starsLatest: v0.0.3Released 2021-05-14License: OSL-3.0
composer require yireo/magento2-live-test-runnerREADME
Reproduced from the package’s own README, under its own license, as of 2026-09-13. Links and images point back at the source repository.
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
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.
Links
- Packagist
- PackageMaven — quality data by PackageMaven
- Repository
- Issues