Error: Class “Yandex\Allure\Adapter\AllureAdapter” does not exist
-
28-02-2021 - |
Question
Preconditions (*)
- Magento 2.3.1 upgraded from Magento 2.3.0
- Php 7.2.15
- OS : Ubuntu 18.04 Bionic
- Phpstorm 2019.1.1
- Evnironemnt : Magento development
Steps to reproduce (*)
- Issue appears after upgrading magento from 2.3.0 to 2.3.1.
- Removing magento/magento2-functional-testing-framework
- installing latest magento/magento2-functional-testing-framework:~2.3.13
- Running below commands.
bin/magento dev:tests:run unit
OR
vendor/phpunit/phpunit/phpunit -c dev/tests/unit/phpunit.xml.dist
These commands should run unit test on entire magento project not just on one mdoule.
NOPTE: Above commands will work if version 2.3.0 is installed directly and also for 2.3.1 if installed directly.
Solution
Install following package as follows since 2.3.0 didn't came with allure-phpunit.
This issue is related with following issue
So in order for upgraded 2.3.0 to 2.3.1 magento to work install following.
composer require allure-framework/allure-phpunit:~1.2.0 --dev
Then run
bin/magento dev:tests:run unit
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange