-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report
Description
Currently I'm unable to run the integration tests.
Steps to reproduce:
$ cd dev/tools && php tests.php --type=integration
I have to assign 1G memory to PHP to make them run, but even then pretty much every test gives me a stacktrace.
The same happens if I call phpunit directly without the tests.php script.
And its not always the same stacktrace. Some are due to Magento\RecurringPayment missing, but some others seem completely unrelated to the payment methods.
See below at the bottom of this issue for a few examples.
What I don't get is why the integration tests on travis run.
cd dev/tests/integration/; ./../../../vendor/bin/phpunit -c phpunit.xml.dist;
Any idea what I am doing wrong? Was something changed recently in how to run the integration tests?
Here a couple examples of from the exceptions and errors:
Fatal error: Call to a member function getId() on a non-object in m2.dev/htdocs/dev/tests/integration/testsuite/Magento/Catalog/Model/AbstractTest.php on line 125
m2.dev/htdocs/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixture.php(159): Magento\TestFramework\Annotation\DataFixture->_applyOneFixtPHP Fatal error: Call to a member function getId() on a non-object in m2.dev/htdocs/dev/tests/integration/testsuite/Magento/Catalog/Model/AbstractTest.php on line 125
Error in fixture: "m2.dev\/htdocs\/dev\/tests\/integration\/testsuite\/Magento\/Catalog\/_files\/products.php"
exception 'ReflectionException' with message 'Class Magento\RecurringPayment\Model\Product\Attribute\Backend\Recurring does not exist' in m2.dev/htdocs/lib/internal/Magento/Framework/Code/Reader/ClassReader.php:18
Error in fixture: "m2.dev\/htdocs\/dev\/tests\/integration\/testsuite\/Magento\/Catalog\/_files\/products_rollback.php"
exception 'Magento\Eav\Model\Entity\Attribute\Exception' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'main_table.website_id' in 'where clause', query was: SELECT `main_table`.*, `cp_table`.`type_id` FROM `cataloginventory_stock_item` AS `main_table`
INNER JOIN `catalog_product_entity` AS `cp_table` ON main_table.product_id = cp_table.entity_id WHERE (`main_table`.`product_id` IN('')) AND (`main_table`.`website_id` = '1')' in /Volumesm2.dev/htdocs/lib/internal/Magento/Framework/ObjectManager/Factory/AbstractFactory.php:98
Metadata
Metadata
Assignees
Labels
Issue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentbug report