[buddypress-trac] [BuddyPress Trac] #6009: Share fixtures across unit tests where appropriate

buddypress-trac noreply at wordpress.org
Fri Nov 14 13:46:51 UTC 2014


#6009: Share fixtures across unit tests where appropriate
--------------------------+-----------------
 Reporter:  boonebgorges  |      Owner:
     Type:  task          |     Status:  new
 Priority:  normal        |  Milestone:  2.2
Component:  Unit Tests    |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------
 There are a few places where our unit tests could benefit hugely from
 sharing fixtures (ie the dummy data) across a series of tests. Take the
 `suggestions` group, for instance: these tests create a bunch of data
 during each `setUp()`, but the data is the same between tests, and is not
 modified during the tests. So it's safe to share it, and shave a minute or
 more off of the running time of our suite.

 Sharing fixtures should generally be done with caution, but when the tests
 are testing only *get* functionality, it should be safe.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6009>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list