Closed Gormartsen closed 8 years ago
Just tried assigning the issue to you but the autocomplete field does not have you GitHub handle available (??).
@klonos tnx. I assume it's because I am not a part of backdrop/backdrop-issue team
@Gormartsen you are absolutely right.
Summary from PR:
--cache
enabled by defaultfield_cache_clear
to field_test.install. There is no need to call 'field_cache_clear' after each test.--cache
turn on installation profile database and config cache.--clean
is cleaning installation profile database and config cache.As a result - tests are running almost 2x times faster.
As a result - tests are running almost 2x times faster.
That's all we need to know. Yay!! Thanx @Gormartsen :clap:
This is awesome @Gormartsen! Test time is indeed cut in half. Great job!
I filed a new PR at https://github.com/backdrop/backdrop/pull/1366 that does a bit of clean up on the BackdropWebTestCase
class. I made a change to it to use $this->fileDirectoryName
in prepareEnvironment()
so that we don't need to override that same method in your new class. I also did some clean up on the class that I'd been wanted to do for a while, fixing all the PHP inspections in PHPStorm.
Tests seem to be passing. I'll merge in the new version shortly.
Merged in https://github.com/backdrop/backdrop/pull/1366. We have a random fail happening pretty frequently. I've picked back up at https://github.com/backdrop/backdrop-issues/issues/1478#issuecomment-218927947 to fix that issue.
@Gormartsen This is a really awesome patch! Congratulations!
The idea not to use a DUMP, but instead to CREATE table LIKE X and INSERT INTO is great!
@quicksketch thank you for cleaning code.
@LionsAd create table is still slow even on SSD disks. If you noticed, I added ALTER table to cache prepare phaze . MyISAM is faster for drop create table. A huge performance boost are coming from moving MySQL data dir to memory. (Like /dev/shm)
I am looking how to properly reuse setUp without creating conflict and have fresh setup for each test. Task could be assigned to me.