Files
FreshRSS/docs/fr/developers/03_Running_tests.md
Alexandre Alapetite 0d31f89dd8 Remove remains of Travis (#3941)
* Remove remains of Travis
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/3920

* Update docs/en/developers/03_Running_tests.md

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>

* Apply suggestions from code review

Co-authored-by: Frans de Jonge <fransdejonge@gmail.com>
Co-authored-by: Alexis Degrugillier <aledeg@users.noreply.github.com>
2021-11-02 23:46:26 +01:00

1.3 KiB

Running tests

FreshRSS is tested with PHPUnit. No code should be merged in edge if the tests don't 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:

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 to let maintainers know about the problem.

Then, it executes PHPUnit in a Docker container. If you don't use Docker, you can run the command directly with:

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 ». Cette action est nécessaire pour s'assurer qu'aucune régression ne soit introduite dans le code. Nous n'accepterons 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.