dev-master
9999999-devLaravel APIDoc Tester
MIT
The Requires
- laravel/framework 5.6.*
- php >=5.6
by ylsalame
laravel test php artisan apidoc
Laravel APIDoc Tester
Artisan command for Laravel that will use the APIDoc notations to create and execute API tests, (*1)
1) Add ylsalame/laravelapidoctester
to composer.json, (*2)
"require": { "ylsalame/laravelapidoctester": "~0.1" }
2) Update Composer from the CLI:, (*3)
composer update
php artisan apidoctester
APIDoc Tester scripted tool with a visual interface. This means that you will not have any action executed before you visualy confirm and ackowledge what is going to be done. Here is an example of what the interface looks like:, (*4)
[optional] The directory where API classes/methods are kept (recursively scanned) [default] /app/Http/Controlers If no files with APIDoc blocks are found, the script will raise an exception
[optional] The directory where APIDoc/Codeception files will be stored [default] /storage/app/testing/apidoc APIDoc and Codeception generates multiple files and this arg will define where these will be stored
[optional] This stops the script from deleting all APIDoc/Codeception files it has generated, including the api_data.json file. [default] false
The tests will be run using the generated APIDoc .json file and will be shown on screen while they are happening, (*5)
By default this script deletes everything it creates, including the APIDocs/Codeception files unless the "keep_files" parameter is set to true, (*6)
Laravel APIDoc Tester
MIT
laravel test php artisan apidoc