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

WordPress Trac noreply at wordpress.org
Fri Oct 16 22:20:48 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 nerrad):

 So as brought up in slack, switching `$factory` to a static property blows
 up plugins extending that WP_UnitTestCase and the WP factory.  The patch I
 added in fix-blown-up-factory.diff will fix it for plugins and I think
 preserve the intent with the changes, but of course means that all the
 changes made in WordPress testcases using the static property will need
 updated to use $_factory instead.  I didn't have time to go through and do
 this for this patch but just threw this up for now in case it helps.

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


More information about the wp-trac mailing list