summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-11-30 22:31:34 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-11-30 23:44:07 +0100
commit96cdf91c3c4e052b0cd7976b32661c174a426c79 (patch)
treeb77ef9172c495ebbd76316b4eb8612bce9dd2c2a /README.md
parent932988923547b86c879268fab894f3df85e9e2ea (diff)
Use pcov to speed up tests with code coverage
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6333d245..8f1cb705 100644
--- a/README.md
+++ b/README.md
@@ -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.