bigbite / wp-cypress

WordPress end to end testing with Cypress.io.
MIT License
86 stars 19 forks source link

Make memory_limit configurable #54

Closed danrhjones closed 2 years ago

danrhjones commented 3 years ago

When I include Jetpack 9.4.1 in to my project, and then i try to add seeds using cy.seed('seedName'), I get the following error:

Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 131072 bytes) in /var/www/html/wp-content/mu-plugins/jetpack/locales.php on line 640 Error: There has been a critical error on your website.Learn more about debugging in WordPress. There has been a critical error on your website.

If I increase the memory limit in 'wp-cypress-config.php' with ini_set('memory_limit','256M'); then I am able to use cy.seed with no problems

It would be good to have memory_limit as a config that can be set in cypress.json