Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292899

Improve performance of functional tests by caching Drupal installations

$
0
0

BrowserTestBase creates a fresh Drupal installation for each test. This takes a considerable part of test execution time and has a negative impact on developer experience.

Another performance problem is enabling modules that a test depends on. It is quite expensive operation and in some cases it may take even more time than installing Drupal.

The possible solution could be dumping a database into SQL file just before the test case get executed. So that on the next test run Drupal can be installed using predefined SQL dump which is much faster the normal installation process.


Viewing all articles
Browse latest Browse all 292899

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>