1
0
mirror of https://github.com/ovh/php-ovh.git synced 2023-11-05 03:20:26 +01:00

README: change documentation about how to run the tests

This commit is contained in:
Romain Beuque 2021-01-20 09:02:28 +00:00
parent d14a0d1cdb
commit 75852ad0fe

View File

@ -227,15 +227,11 @@ local npm project in a clone a project
git https://github.com/ovh/php-ovh.git git https://github.com/ovh/php-ovh.git
cd php-ovh cd php-ovh
php composer.phar install php composer.phar install
vendor/bin/phpunit tests/ApiTest.php
Edit **phpunit.xml** file with your credentials to pass functionals tests. Then, To run functionals tests, you need to provide valid API credentials, that you can provide them via environment:
you can run directly unit and functionals tests with [phing](http://www.phing.info/).
vendor/bin/phing test APP_KEY=xxx APP_SECRET=xxx CONSUMER=xxx ENDPOINT=xxx vendor/bin/phpunit tests/ApiFunctionalTest.php
To skip functionals and run unit tests only, you can use the `only.units` option :
vendor/bin/phing test -Donly.units=true
Supported APIs Supported APIs
-------------- --------------