feat: add PCOV-based unit/feature coverage tooling - #16
Open
oreno4649 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR brings covering coverage tooling for PHP container.
Code coverage tooling (new)
the 5–10x slowdown of Xdebug)
docker/php/volumes/merge-coverage.php: merge per-suite.covdumps into clover / html / text reports
make test-coverage-unit/test-coverage-feature/test-coverage-mergemake test-coverage(one-shot: unit → feature → merge)make test-browser(runs browser tests withpcov.enabled=0toavoid PCOV segfaults on BrowserKit)
pcov.enabled=1andpcov.directoryset inphp.iniSummary
コードのカバレッジ計測の整備のためにPHPのコンテナにコードカバレッジ計測用の設定を追加しました。
コードカバレッジ計測(新規)
を取得可能)
docker/php/volumes/merge-coverage.php: suite ごとの.covダンプを clover / html / text レポートに統合するスクリプト
make test-coverage-unit/test-coverage-feature/test-coverage-mergemake test-coverage(unit → feature → merge を一括実行)make test-browser(BrowserKit と PCOV の組み合わせで発生するsegfault を避けるため
pcov.enabled=0で実行)php.iniにpcov.enabled=1とpcov.directoryを設定