Bug #58433

Task #51436: Standalone unit test runner

Speed up functional tests

Added by Christian Kuhn over 1 year ago. Updated over 1 year ago.

Status:Resolved Start date:2014-05-02
Priority:Should have Due date:
Assigned To:- % Done:

100%

Category:Unit/Functional Tests Spent time: -
Target version:next-patchlevel
TYPO3 Version:6.2 Is Regression:No
PHP Version:5.4 Sprint Focus:
Complexity:medium

Associated revisions

Revision 8fbe4107
Added by Christian Kuhn over 1 year ago

[TASK] Speed up functional tests

Optimize functional test bootstrap to improve performance:

  • Database schema for single tests of a test case are always
    identical by design. So a database can be re-used between
    single tests to save the table creation overhead. Database
    tables are truncated instead which is quicker.
  • Load less extensions by default, so less tables are created.
  • Enable class loader caches.

Typically, tests instances with mysql on a ramdisk, tests are ~25%
quicker, for native mysql on hdd the performance impact is ~50%.

Change-Id: Ife1ea755c5336f7d4362b2affe7bba9e94862e92
Resolves: #58433
Releases: 6.2
Reviewed-on: https://review.typo3.org/29575
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring

History

#1 Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29575

#2 Updated by Christian Kuhn over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF