I am quite new to PHP-testing. In my composer.json require-dev list I have a few packages needed for testing but also other packages which are needed for other development stuff (ide helpers, migration helpers, ...). I am now thinking that testing against an environment where all dev packages are installed is not so useful if at the end the production environment doesn't have them. For example if I miss that I need a package also in production which is in my require-dev list, the tests would still run through.
What I would like is a third list something like require-testing where all packages which are really required for testing are listed and that then my testing environment only uses the packages from require and require-testing but not from require-dev. Am I thinking wrong or why is there no support for something like that or how could I achieve this?
Aucun commentaire:
Enregistrer un commentaire