[wp-trac] [WordPress Trac] #36867: Enable phpunit to be run with codecoverage

WordPress Trac noreply at wordpress.org
Wed May 18 17:13:15 UTC 2016


#36867: Enable phpunit to be run with codecoverage
------------------------------+---------------------
 Reporter:  jorbin            |       Owner:  jorbin
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.6
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:                    |     Focuses:
------------------------------+---------------------
Changes (by jorbin):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"37459"]:
 {{{
 #!CommitTicketReference repository="" revision="37459"
 Correct usage of @Covers for Tests_Post_Types

 When @covers is used with a plain alphanumeric string, PHPUnit assumes
 that it is covering a class. If there is no class, it fails and exits
 rather than continuing to generate coverage. To cover a global function,
 the name must start with ::. See
 https://phpunit.de/manual/5.3/en/appendixes.annotations.html#appendixes.annotations.covers

 Introduced in [36768].

 Fixes #36867. See #35985
 }}}

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


More information about the wp-trac mailing list