[wp-trac] [WordPress Trac] #39265: Missing @covers in the comment blocks in PHPUnit tests

WordPress Trac noreply at wordpress.org
Fri Jul 8 00:11:30 UTC 2022

#39265: Missing @covers in the comment blocks in PHPUnit tests
 Reporter:  pbearne                        |       Owner:  hellofromTonya
     Type:  task (blessed)                 |      Status:  reviewing
 Priority:  normal                         |   Milestone:  6.1
Component:  Build/Test Tools               |     Version:  4.8
 Severity:  normal                         |  Resolution:
 Keywords:  php8 has-patch has-unit-tests  |     Focuses:

Comment (by SergeyBiryukov):

 In [changeset:"53687" 53687]:
 #!CommitTicketReference repository="" revision="53687"
 Tests: Remove `@uses` tags from the test suite.

 * These were not used consistently, with only four instances across all
 the tests.
 * Using this tag in combination with the
 `beStrictAboutCoversAnnotation="true"` setting will mark a test as "Risky"
 if code is executed during the test which is not annotated via `@covers`
 or `@uses` tags. That would make the maintainance of the tags very fiddly,
 while adding little additional value for the test code base.

 Follow-up to [32995], [39914], [42636], [53682].

 Props jrf.
 See #39265.

Ticket URL: <https://core.trac.wordpress.org/ticket/39265#comment:102>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list