Were developed many ways to test a project ...
-
Model factories, Relations, Database assertions and Refactoring Model tests.
-
Customizing Request Headers, Cookies, Routes, Views, Test with Ajax request, Validations, ResouceControllers, Middlewares,
-
Testing an special action
-
Mocking Classes, Facades, Events
-
Provides an expressive, easy-to-use browser automation and testing Controllers
php artisan serve
npm install
npm run dev
php artisan test
php artisan dusk
php artisan make:test UserTest
php artisan make:test UserTest --unit
How to clear config cache?
php artisan config:clear
composer require --dev laravel/dusk
php artisan dusk:install
tests/Browser/console/*.log
tests/Browser/screenshots/*.jpg
tests/Browser/sources/*.php
If you can add something else to this project, please do it, I'm loking forward to share and extend this example project :)