-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit test fails after fresh installation #11230
Comments
@bnymn, thank you for your report. |
This can be reproduced by installing Magento 2.2 via composer. The test will look for: It won't find the file, because it is located at: |
Confirmed what @vanpoppel says. Please reopen issue @magento-engcom-team |
I would like to know if this test is intended for use on a Magento2 installed via composer. When you install Magento2 by creating a clone from the Magento2 repository you won't have this problem. But (I hope) people only do this to contribute to Magento2. Is a developer supposed to be able to run all unit tests when installed via composer? Or only the ones they write themselves? |
@vanpoppel I think that a developer must have the ability to run all unit tests, because sometimes we are writing plugins which changes the behavior of core modules. In this case, we need to make sure that everything is working just fine. |
Hi @bnymn. Thank you for your report. The fix will be available with the upcoming patch release. |
As #12419 if you want to avoid the problem (but not fix the error) In <testsuite name="Magento Unit Tests">
.....
<exclude>../../../setup/src/Magento/Setup/Test/Unit/Module/Di/Code/Reader/FileClassScannerTest.php</exclude>
</testsuite> |
I have freshly installed Magento 2.2. The first thing I do is running unit tests. I have got one error.
Preconditions
Steps to reproduce
vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist
Expected result
Actual result
When I look at this file
setup/src/Magento/Setup/Test/Unit/Module/Di/Code/Reader/FileClassScannerTest.php
, I am seeing the following test.This is interesting that there is not any file in
app/code
, since the file it is looking for insidevendor
directory.The text was updated successfully, but these errors were encountered: