[wp-trac] [WordPress Trac] #53119: Tests: introduce naming conventions for data providers and use named test cases

WordPress Trac noreply at wordpress.org
Fri Apr 30 16:34:19 UTC 2021


#53119: Tests: introduce naming conventions for data providers and use named test
cases
------------------------------+------------------------------
 Reporter:  jrf               |       Owner:  (none)
     Type:  task (blessed)    |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:  docs
------------------------------+------------------------------

Comment (by pbiron):

 As one who likes to write tests that use data providers I think this is a
 great idea!

 I would, however, recommend one change to the proposal: put all data
 providers at the bottom of the class, regardless of which tests they are
 used for.

 I think that simplification/consistency would be easier for contributors
 to "grasp".

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53119#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list