Skip to content

Commit

Permalink
Try using pcov instead of phpdbg for code coverage (#22174)
Browse files Browse the repository at this point in the history
It doesn't seem to be that much faster, but it doesn't seem to have the
segfaulting problem that phpdbg has been giving us lately.

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/1616131653
  • Loading branch information
anomiex authored and matticbot committed Dec 23, 2021
1 parent 7c77053 commit 967ce12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This is an alpha version! The changes listed here are not final.
### Changed
- Allow Node ^14.17.6 to be used in this project. This shouldn't change the behavior of the code itself.
- Set `convertDeprecationsToExceptions` true in PHPUnit config.
- Switch to pcov for code coverage.
- Tests: update PHPUnit polyfills dependency (yoast/phpunit-polyfills).
- Updated name to automattic/jetpack-search-plugin
- Updated package dependencies
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"test-coverage": [
"@composer install",
"phpdbg -d memory_limit=2048M -d max_execution_time=900 -qrr ./vendor/bin/phpunit --coverage-clover \"$COVERAGE_DIR/clover.xml\""
"php -dpcov.directory=. ./vendor/bin/phpunit --coverage-clover \"$COVERAGE_DIR/clover.xml\""
],
"test-php": [
"@composer install",
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 967ce12

Please sign in to comment.