[wp-trac] [WordPress Trac] #50267: Getting code coverage from phpunit?
WordPress Trac
noreply at wordpress.org
Sun Aug 23 17:22:43 UTC 2020
#50267: Getting code coverage from phpunit?
------------------------------+-----------------------------
Reporter: mmarco9 | Owner: SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.6
Component: Build/Test Tools | Version: 5.1
Severity: minor | Resolution:
Keywords: has-patch | Focuses:
------------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"48847" 48847]:
{{{
#!CommitTicketReference repository="" revision="48847"
Build/Test Tools: Update code coverage setup in the `phpunit.xml.dist`
file to point to the `build` directory.
This makes the configuration consistent with the `WP_RUN_CORE_TESTS`
constant being set to `1` in the same config file.
Additionally, update the list to be in line with the current codebase,
excluding the plugins and themes bundled with WordPress core from being
considered for code coverage.
Note: If you have a local `phpunit.xml` file that changes the
`WP_RUN_CORE_TESTS` constant to `0`, you should also - in the same file -
change the code coverage setup to use the `src` directory.
Follow-up to [42665], [43311].
Props jrf, mmarco9.
See #50267.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50267#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list