Tuesday 31 July 2018

Unit Test Auto Generate for Laravel

Creating unit test for all the routes will be very difficult if you have large number of routes and parameters.

This package will automatically generate the unit test file for all of your routes and based on the form request files, to use the package install the package using composer

composer require vigneshc91/laravel-test-generator

After installing run the artisan command to generate the files

php artisan laravel-test:generate

You can use the available options to generate test file in  specific directory, or for some specific route prefix by using the options in that package

Ref : https://vigneshc91.github.io/laravel-test-generator/

No comments:

Post a Comment