[wp-trac] [WordPress Trac] #52786: Fix the code coverage reporting

WordPress Trac noreply at wordpress.org
Fri Mar 26 13:24:08 UTC 2021


#52786: Fix the code coverage reporting
--------------------------------------+----------------------
 Reporter:  jrf                       |       Owner:  desrosj
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  5.8
Component:  Build/Test Tools          |     Version:  5.7
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+----------------------
Changes (by desrosj):

 * owner:  (none) => desrosj
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"50592" 50592]:
 {{{
 #!CommitTicketReference repository="" revision="50592"
 Build/Test Tools: Fix code coverage reporting to generate report from
 `src`.

 Since [50441-50442] switched the test workflows to run from `src` instead
 of `build`, code coverage reporting has stopped working. This was caused
 by the code coverage configuration continuing to reference `build`. This
 corrects the configuration so coverage reporting can resume.

 This change also introduces the `workflow_dispatch` event to the workflow,
 which will allow committers to manually run the workflow when desired. For
 example, to confirm changes to the test suite do not break reporting.

 This also adds the `phpunit.xml.dist` and `tests/phpunit/multisite.xml`
 files to the `paths` list. Since these files are responsible for
 configuring the test suite and code coverage reporting, any changes to
 them should verify that no problems were introduced.

 Props jrf, johnbillion.
 Fixes #52786. See #51734.
 }}}

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


More information about the wp-trac mailing list