[wp-trac] [WordPress Trac] #41641: Unit testing reaching the memory limit
WordPress Trac
noreply at wordpress.org
Wed Aug 30 19:40:13 UTC 2017
#41641: Unit testing reaching the memory limit
------------------------------+------------------------------
Reporter: Hristo Sg | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+------------------------------
Comment (by coderkevin):
I observed some massive memory usage when running PHPUnit tests for the
REST API. I dug into this about halfway during the WCUS contributor day,
but ran out of time. Here's what I observed so far as I can recall:
- A lot of memory churn occurs from bringing up basically all of WordPress
with each test and shutting it down again.
- The tests I observed didn't seem to get cleared from memory, the memory
consumption increased linearly with each test run.
At the time, I ran this on vvv using the wordpress-develop server. I also
ran out of memory when I tried to run all of the REST API tests.
I will take a look at profiling this again and see what I can come up with
and report back here. If anyone else has done some profiling or wants to,
I'm happy to collaborate.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41641#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list