You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+17-7Lines changed: 17 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,22 @@ Pull requests for bugs are more than welcome - please explain the bug you're try
13
13
14
14
## Developing
15
15
16
+
## 🧪 Running tests
17
+
18
+
Run the test suite without code coverage (no Xdebug required):
19
+
20
+
```bash
21
+
./vendor/bin/phpunit --no-coverage
22
+
```
23
+
24
+
Run the test suite with code coverage (requires [Xdebug](https://xdebug.org/) or [PCOV](https://github.com/krakjoe/pcov)):
25
+
26
+
```bash
27
+
XDEBUG_MODE=coverage ./vendor/bin/phpunit
28
+
```
29
+
30
+
> **Note:** Running `./vendor/bin/phpunit` without `--no-coverage` and without a coverage driver will fail with _"No code coverage driver available"_. Use `--no-coverage` for day-to-day local development.
31
+
16
32
## 🚔 Check Symfony 4 coding standards & best practices
17
33
18
34
You need to run composer before using [FriendsOfPHP/PHP-CS-Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer).
@@ -37,20 +53,14 @@ It can modernize your code (like converting the pow function to the ** operator
0 commit comments