[wp-trac] [WordPress Trac] #42278: Speed up tests by using shared user fixtures

WordPress Trac noreply at wordpress.org
Thu Oct 19 09:09:45 UTC 2017


#42278: Speed up tests by using shared user fixtures
------------------------------+-----------------------------
 Reporter:  Frank Klein       |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:  trunk
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 There are a lot of tests that require user fixtures. These are then
 created, and afterwards deleted, as part of the test class set up and tear
 down methods.

 These fixtures could all be reused between tests, if a user for every role
 in Core would be created in the database as part of the unit test setup
 process.

 If we had that, all the tests that need for example a user with the
 `editor` role could just grab the existing user from the database, instead
 of creating this as a test fixture.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42278>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list