[wp-trac] [WordPress Trac] #30017: Many automated tests are unnecessarily slow
WordPress Trac
noreply at wordpress.org
Sat Jan 3 20:57:23 UTC 2015
#30017: Many automated tests are unnecessarily slow
------------------------------+-----------------------------
Reporter: boonebgorges | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: Future Release
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses: performance
------------------------------+-----------------------------
Comment (by jdgrimes):
[attachment:30017.diff] attempts to speed up the Ajax tests by only
calling the `admin_init` action once. At present the action is called for
every single test, which accounts for a significant portion of the time
the Ajax tests take to run. I don't know if there is a reason that
`admin_init` was being called every time, and #UT25 yields no clues. Maybe
someone else with more knowledge of what is hooked to this action and how
it affects an Ajax call could shed some light on this. All I know is that
I have been running Ajax tests for a plugin with this patch applied for
some time, and I haven't experienced any issues, or seen any evidence that
it causes the tests to leak into each other.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30017#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list