#43240 closed enhancement (fixed)
Exclude third-party code from code coverage reports
Reported by: | schlessera | Owned by: | johnbillion |
---|---|---|---|
Milestone: | 5.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | Cc: |
Description
The code coverage currently runs over all files indiscriminately.
For meaningful code coverage reports, we should exclude third-party code, as suggested by @johnbillion in #43067.
The list can be taken from PHPCS exclusion list we already have in Core: https://github.com/WordPress/wordpress-develop/blob/b9b2f2a79d3506a74e3c3ce34de69ed069864dfe/phpcs.xml.dist#L16
Attachments (1)
Change History (7)
#1
@
7 years ago
- Keywords has-patch added
Attached a patch that is based on the exclusions already found in https://github.com/WordPress/wordpress-develop/blob/b9b2f2a79d3506a74e3c3ce34de69ed069864dfe/phpcs.xml.dist#L16 .
NOTE: For this to actually work in tests, #43067 needs to already be applied as well.
#2
@
7 years ago
- Milestone changed from Awaiting Review to 5.0
- Owner set to johnbillion
- Status changed from new to accepted
This ticket was mentioned in Slack in #core by desrosj. View the logs.
6 years ago
Note: See
TracTickets for help on using
tickets.
Exclusion list taken from PHPCS exclusions