cp .env.example .env
docker-compose up -d
docker-compose exec php composer install
docker-compose exec php chmod -R 777 storage bootstrap/cache
docker-compose exec php php artisan key:generate
docker-compose exec php php artisan migrate
docker-compose exec php php artisan module:seed Exercise03To prevent conflict, each exercise is organized in its own folder with the help of package Laravel-Modules, for example Modules/Exercise01.
Start implementing and writing unit tests for each exercise.
cp .env.testing.example .env.testingRun all:
./phpunit.shRun all with coverage text:
./phpunit.sh --coverage-textRun all with coverage html:
./phpunit.sh --coverage-html=coverageRun only one module (see testsuites in phpunit.xml)
./phpunit.sh --coverage-html=coverage --testsuite=Exercise01NOTE: You can edit file ./phpunit.sh to use other phpunit code coverage driver. pcov or phpdbg can generate code coverage much faster than xdebug. Please try!
Run all:
./infection.shRun only one module:
./infection.sh --filter=Exercise01Run only one file:
./infection.sh --filter=Modules/Exercise01/Http/Controllers/OrderController.php