-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Web-Api and Integration tests execution takes to much time (especially with enabled Inventory modules)
Current approach \Magento\TestFramework\Application::createDynamicTables running each test execution (even more than one time for one test).
The root cause of the issue - creating tables inside a transaction (which added by test framework for isolation) and using them during the test
The proposed way to fix:
- if possible to run code before isolation transaction start:
** Remove [overridden TestFramework/Application.php|https://github.com/magento/commerce-data-export/blob/main/dev/tests/integration/framework/Magento/TestFramework/Application.php]
** trigger table creation for specific tests - if not possible:
** avoid run table creation for each test, run only before start test suite
** add overridden class (if no other option) to section in the main README.md file and provide explanation of the reason why the class was overwritten