Nimut / testing-framework

TYPO3 testing framework that provides base classes and configuration for PHPUnit tests
GNU General Public License v2.0
52 stars 25 forks source link

[TASK] Only truncate tables that have been touched #142

Closed oliverklee closed 2 years ago

oliverklee commented 2 years ago

"Touched" means "the auto increment has been changed (if there is one)" or "there are some records in it".

This massively speeds up functional tests (as the table truncation usually is the slowest part of the test setup).

oliverklee commented 2 years ago

This is a direct port of the relevant parts of the corresponding change in the TYPO3 testing framework plus the followup-PR (with small changes to ensure compatibility with TYPO3 8LTS).

oliverklee commented 2 years ago

You can see the change in action in TYPO3 8LTS, 9LTS and 10LTS here: https://github.com/oliverklee/ext-oelib/pull/645 https://github.com/oliverklee/ext-seminars/pull/783 https://github.com/TYPO3-Documentation/tea/pull/278

oliverklee commented 2 years ago

The build failures on this PR most probably are not related to this change. PRs #140 and #141 should fix them.