[wp-trac] [WordPress Trac] #33968: Improve performance of Unit Tests for 4.4

WordPress Trac noreply at wordpress.org
Thu Oct 15 16:35:59 UTC 2015


#33968: Improve performance of Unit Tests for 4.4
------------------------------+-----------------------
 Reporter:  jorbin            |       Owner:  jorbin
     Type:  defect (bug)      |      Status:  assigned
 Priority:  normal            |   Milestone:  4.4
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+-----------------------

Comment (by boonebgorges):

 I profiled the xmlrpc tests, and one bottleneck is the authentication
 process. `get_user_by( 'login' )` takes a stupid amount of time.
 [attachment:33968.diff] mocks the authentication process. I'm not sure if
 this is safe to do across all xmlrpc tests - probably not for the ones
 that are meant to test invalid u/p - but it does seem to reduce `phpunit
 --group xmlrpc` by about 15-20%.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33968#comment:63>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list