Skip to content

Commit

Permalink
add a section explaining how to run unit tests (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Coutadeur committed Jul 3, 2024
1 parent 56e562b commit 4049d34
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/developpers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,21 @@ Points of attention:
* don't forget to declare the namespace: ``namespace captcha;``
* don't forget to write the corresponding unit tests (see tests/InternalCaptchaTest.php)


Run unit tests
--------------

Run the unit tests with this command:

```
XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --configuration tests/phpunit.xml
```

Take care to use the phpunit shipped with composer.

If you don't have the composer dependencies yet:

```
composer update
```

0 comments on commit 4049d34

Please sign in to comment.