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

buddypress-trac noreply at wordpress.org
Fri Feb 27 03:00:43 UTC 2015


#6009: Share fixtures across unit tests where appropriate
--------------------------------+-----------------------------
 Reporter:  boonebgorges        |       Owner:
     Type:  task                |      Status:  new
 Priority:  normal              |   Milestone:  Future Release
Component:  Tools - Unit Tests  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:                      |
--------------------------------+-----------------------------

Comment (by boonebgorges):

 In [changeset:"9561"]:
 {{{
 #!CommitTicketReference repository="" revision="9561"
 Don't create a current user by default in most unit tests.

 The default state of our tests should be as a logged-out user. BP does
 pretty
 different things with different kinds of logged-in users, so individual
 tests
 should decide for themselves what the current user status should be.

 Moreover, the creation of fixture users is fairly resource-intensive. Not
 creating users when they're not needed makes the test suite run 5-10%
 faster.

 See #6009.
 }}}

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


More information about the buddypress-trac mailing list