Allure PHPUnit extension is not recognising the parameter path if the phpunit.xml.dist is placed in a different directory than root. #106#107
Conversation
… phpunit.xml.dist is placed in a different directory than root
|
This PR will fix issue #106 |
|
@remorhaz I hope you're doing well! I’ve submitted a pull request that addresses #106. It would be great if you could take a moment to review it when you have the time. I’ve made sure to follow the contribution guidelines, but I’d appreciate any feedback or suggestions for improvement. Looking forward to your insights! |
|
Hello, This issue is a blocker for running unit tests on Magento 2. Could you please review the proposed changes in the pull-request? Best Regards, |
|
@candemiralp Thank you for the confirmation. To help bring more visibility to the issue, please consider giving it a thumbs-up so the appropriate team can take notice. In the meantime, for Magento 2 users, this issue is documented in the official Adobe guide: |
If phpunit.xml.dist file is placed in a different path other than root. Then in CLI, if I am running below command from project root:
./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist
It is giving below error:
There was 1 PHPUnit test runner warning:
Steps to reproduce the behavior:
vendor/bin/phpunit -c allure/phpunit.xml tests/UserTest.php
Expected behavior
It was supposed to work smoothly with all configurations being used properly and allure reports being generated.
Actual behavior
Getting error as described in description and no allure reports are getting generated. AllureExtension is not taking absolute path as it should be. This behaviour was working correctly with PHPUnit 9 config file.