[wp-trac] [WordPress Trac] #42904: Speed up unit tests by disabling password hashing
WordPress Trac
noreply at wordpress.org
Wed Jan 9 10:46:45 UTC 2019
#42904: Speed up unit tests by disabling password hashing
-------------------------------------+---------------------
Reporter: Frank Klein | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.2
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses:
-------------------------------------+---------------------
Changes (by pento):
* milestone: 5.1 => 5.2
Comment:
Actually, I just got back to this ticket. It seems that
`WP_UnitTest_Factory_For_User::create_object()` is only allowing it for
tests that pass `skip_password_hash`, but currently no tests are doing
that. Disabling that check gives the speed boost, but causes a bunch of
errors.
So, I like the direction of [attachment:"42904-2.patch"], but it needs to
be updated to turn off password hashing on the tests that don't need it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42904#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list