I want to make unit tests in PHPStorm for Magento. I First tried to run all the existing unittests but it gives me this warning and exits with code 2:

Warning: unlink(var/allure-results/0000f2f0-fc2a-4207-b37f-55ebb81db76b-testsuite.xml): Permission denied in /var/www/osp.example.com/magento-headless/Magento2/vendor/allure-framework/allure-phpunit/src/Yandex/Allure/Adapter/AllureAdapter.php:77.

I tried to follow these steps: https://devdocs.magento.com/guides/v2.4/test/unit/unit_test_execution_phpstorm.html

This is my run/debug configuration.

run configurations

Did I miss something?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.