Skip to content

"CreateDynamic" tables issue for integration tests #240

@le0n4ik

Description

@le0n4ik

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions