[wp-trac] [WordPress Unit Tests] #119: Make canonical tests faster

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 7 00:04:55 UTC 2012


#119: Make canonical tests faster
-------------------------+-----------------
 Reporter:  kurtpayne    |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:
Component:  Canonical    |   Keywords:
-------------------------+-----------------
 The canonical tests require a lot of setup (posts, attachments, etc.) for
 each test.  This requires ~27,000 database queries (4,900 inserts, 3,915
 updates) for setting up the test data.

 The setup method runs for every item in the data provider list.

 We talked about solving this with setupBeforeClass(), but this method
 won't have access to the factories.

-- 
Ticket URL: <https://unit-test.trac.wordpress.org/ticket/119>
WordPress Unit Tests <https://unit-test.trac.wordpress.org>
My example project


More information about the wp-trac mailing list