Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Functional tests should not import static data #106

Open
oliverklee opened this issue Nov 22, 2018 · 4 comments
Open

Functional tests should not import static data #106

oliverklee opened this issue Nov 22, 2018 · 4 comments

Comments

@oliverklee
Copy link
Contributor

Importing the static data of extensions (e.g., static_info_tables) can be really slow, and hence slowing down the functional tests immensely. I propose the TF either does not import static data at all, or to make this configurable.

@IchHabRecht
Copy link
Contributor

Hi @oliverklee,

I don't think this is a good option. If your tests depend on an extension with static data, of course you need those to get a fully working dependency. The testing framework does not know which part of the defined extensions your tests need, thus it should always enforce fully working extension setup.

@oliverklee
Copy link
Contributor Author

@IchHabRecht Fair point. My main issue is with the performance penalty of having static tables in functional tests: Currently, having the new oelib static tables slows down the tests from about 2 seconds each to about 20 seconds each. Maybe there is some other way to remove/reduce this performance penalty?

@oliverklee
Copy link
Contributor Author

I'll have a look at what exactly makes the tests so slow on my setup (and why this doesn't happen consistently).

@lolli42
Copy link

lolli42 commented Jul 17, 2022

Note: https://github.com/TYPO3/testing-framework/ solved this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants