Skip to content

Commit

Permalink
Monorepo: Restore and add test coverage config (#39961)
Browse files Browse the repository at this point in the history
* Enable and normalize test coverage commands

* Revert "Code Coverage: remove automation (#28542)"

This reverts commit da5e78803f56ea0fe54f29720c05be037093b97a.

* Revert "Remove remnants of automated code coverage support (#28982)"

This reverts commit 8cc32461b2d3b7e3a4a391c033163e5ebc3822fa.

* Fix starter plugin test broken by #31417

* Plugin tests are now run in the monorepo rather than wp-content/plugins.

* Removed undocumented WP_DEVELOP_DIR variable, documented WORDPRESS_DEVELOP_DIR and WORDPRESS_DIR

* Fixed JS tests in some packages where .scripts.test-js had never been added to composer.json.

---------

Co-authored-by: Brad Jorsch <brad.jorsch@automattic.com>

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/11610578911

Upstream-Ref: Automattic/jetpack@7fadf4a
  • Loading branch information
tbradsha authored and matticbot committed Oct 31, 2024
1 parent faaeb65 commit ee0d4f9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

This is an alpha version! The changes listed here are not final.

### Added
- Enable test coverage.

## [5.65.0] - 2024-10-29
### Added
- adding a WPCOM task [#39776]
Expand Down
25 changes: 14 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.0",
"automattic/jetpack-assets": "^2.3.12",
"automattic/jetpack-blocks": "^2.0.6",
"automattic/jetpack-calypsoify": "^0.1.8",
"automattic/jetpack-classic-theme-helper": "^0.6.5",
"automattic/jetpack-connection": "^5.1.5",
"automattic/jetpack-masterbar": "^0.9.7",
"automattic/jetpack-redirect": "^2.0.4",
"automattic/jetpack-assets": "^2.3.13-alpha",
"automattic/jetpack-blocks": "^2.0.7-alpha",
"automattic/jetpack-calypsoify": "^0.1.9-alpha",
"automattic/jetpack-classic-theme-helper": "^0.6.6-alpha",
"automattic/jetpack-connection": "^5.1.6-alpha",
"automattic/jetpack-masterbar": "^0.9.8-alpha",
"automattic/jetpack-redirect": "^2.0.5-alpha",
"automattic/jetpack-stats-admin": "^0.22.5-alpha",
"automattic/jetpack-status": "^4.0.2",
"automattic/scheduled-updates": "^0.13.5",
"automattic/jetpack-status": "^4.0.3-alpha",
"automattic/scheduled-updates": "^0.13.6-alpha",
"automattic/jetpack-compat": "^3.0.2",
"automattic/jetpack-google-analytics": "^0.2.4",
"automattic/jetpack-google-analytics": "^0.2.5-alpha",
"scssphp/scssphp": "1.12.0"
},
"require-dev": {
"yoast/phpunit-polyfills": "^1.1.1",
"automattic/jetpack-changelogger": "^4.2.7",
"automattic/jetpack-changelogger": "^4.2.8-alpha",
"automattic/wordbless": "0.4.2"
},
"suggest": {
Expand All @@ -36,6 +36,9 @@
"phpunit": [
"./vendor/phpunit/phpunit/phpunit --colors=always"
],
"test-coverage": [
"php -dpcov.directory=. ./vendor/bin/phpunit --coverage-clover \"$COVERAGE_DIR/php/clover.xml\""
],
"test-php": [
"@composer phpunit"
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@automattic/color-studio": "2.6.0",
"@automattic/i18n-utils": "1.2.3",
"@automattic/jetpack-base-styles": "^0.6.34",
"@automattic/jetpack-shared-extension-utils": "^0.15.14",
"@automattic/jetpack-shared-extension-utils": "^0.15.15-alpha",
"@automattic/page-pattern-modal": "1.1.5",
"@automattic/typography": "1.0.0",
"@popperjs/core": "^2.11.8",
Expand Down

0 comments on commit ee0d4f9

Please sign in to comment.