diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-30 22:31:34 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-30 23:44:07 +0100 |
commit | 96cdf91c3c4e052b0cd7976b32661c174a426c79 (patch) | |
tree | b77ef9172c495ebbd76316b4eb8612bce9dd2c2a /README.md | |
parent | 932988923547b86c879268fab894f3df85e9e2ea (diff) |
Use pcov to speed up tests with code coverage
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -101,6 +101,11 @@ vendor/bin/phpunit --testsuite Feature vendor/bin/phpunit ``` +To run code coverage reports its highly recommended to use [`pcov`](https://github.com/krakjoe/pcov) or at least `phpdbg -qrr`(which has problems with switch case statements) as using Xdebug slows down execution. +```bash +php -d pcov.enabled=1 vendor/bin/phpunit --testsuite Unit --coverage-text +``` + ### CI & Build Pipeline The engelsystem can be tested and automatically deployed to a testing/staging/production environment. This functionality requires a [GitLab](https://about.gitlab.com/) server with a working docker runner. |