[wp-trac] [WordPress Trac] #61238: Tests: Ticket annotations should not include any trailing characters

WordPress Trac noreply at wordpress.org
Fri May 17 14:13:23 UTC 2024


#61238: Tests: Ticket annotations should not include any trailing characters
--------------------------------------+-----------------------------
 Reporter:  jonsurrell                |       Owner:  SergeyBiryukov
     Type:  defect (bug)              |      Status:  reviewing
 Priority:  normal                    |   Milestone:  6.6
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------------

Comment (by jonsurrell):

 Does anyone know where the `@ticket` annotations are processed? I found
 this function, but my changes to that file didn't seem to have any impact:

 https://github.com/WordPress/wordpress-
 develop/blob/236a7e0fbf12e650f109d62eacd7d90b47832847/tests/phpunit/includes/phpunit6/compat.php#L21-L39

 I'd like to see if we could implement this idea:

 > The ticket to group matching should trim the ticket number from the
 annotation to match only the initial digits (something like /^\d+/).

 Then this would be less likely to break in the future and tickets could
 include notes:

 {{{
 /**
  * @ticket 123 Make sure the thing isn't broken.
  */
 }}}

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


More information about the wp-trac mailing list