Files
FreshRSS/docs/fr/developers/03_Running_tests.md
Alexandre Alapetite 1acd3ab09b Use typographic quotes (#4133)
* Use typographic quotes

* A few fixes

* Fix

* Fix not saved

* Implement feedback

* Detail

* Revert spoken English fixes
Left for a future dedicated discussion

* More reverts

* Final reverts

* Final minor
2022-01-08 21:58:55 +01:00

34 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Running tests
FreshRSS is tested with [PHPUnit](https://phpunit.de/). No code should be
merged in `edge` if the tests dont pass.
## Locally
As a developer, you can run the test suite on your PC easily with `make`
commands. You can run the test suite with:
```sh
make test
```
This command downloads the PHPUnit binary and verifies its checksum. If the
verification fails, the file is deleted. In this case, you should [open an
issue on GitHub](https://github.com/FreshRSS/FreshRSS/issues/new) to let
maintainers know about the problem.
Then, it executes PHPUnit in a Docker container. If you dont use Docker,
you can run the command directly with:
```sh
NO_DOCKER=true make test
```
## Intégration continue avec GitHub Actions
Les tests sont lancés automatiquement dès que vous ouvrez une « pull request » sur GitHub.
Ceux-ci sont lancés grace aux « [GitHub Actions](https://github.com/FreshRSS/FreshRSS/actions) ».
Cette action est nécessaire pour sassurer quaucune régression ne soit introduite dans le code. Nous naccepterons aucune PR si les tests ne sont pas valides, nous vous demanderons donc de corriger tout ce qui doit lêtre avant de commencer à relire votre code.
Si cela vous intéresse, vous pouvez étudier [le fichier de configuration](https://github.com/FreshRSS/FreshRSS/blob/edge/.github/workflows/tests.yml).