- Shell 🐚
- Docker 🐳
01 -) Clone:
$ git clone https://github.com/thiiagoms/laravel-tdd-poc
02 -) Navegue até o diretório da aplicação:
$ cd laravel-tdd-poc
laravel-tdd-poc $
03 -) Execute o script setup.sh
para iniciar o ambiente dos containers:
laravel-tdd-poc $ chmod +x setup.sh
laravel-tdd-poc $ ./setup.sh
██╗ █████╗ ██████╗ █████╗ ██╗ ██╗███████╗██╗ ████████╗██████╗ ██████╗
██║ ██╔══██╗██╔══██╗██╔══██╗██║ ██║██╔════╝██║ ╚══██╔══╝██╔══██╗██╔══██╗
██║ ███████║██████╔╝███████║██║ ██║█████╗ ██║ ██║ ██║ ██║██║ ██║
██║ ██╔══██║██╔══██╗██╔══██║╚██╗ ██╔╝██╔══╝ ██║ ██║ ██║ ██║██║ ██║
███████╗██║ ██║██║ ██║██║ ██║ ╚████╔╝ ███████╗███████╗ ██║ ██████╔╝██████╔╝
╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚══════╝ ╚═╝ ╚═════╝ ╚═════╝
[*] Author: thiiagoms
[*] E-mail: hiiagoms@proton.me
=> Iniciando os containers (Isso pode demorar um pouco...)
01 -) Para executar os testes da aplicação, execute o seguinte comando:
██╗ █████╗ ██████╗ █████╗ ██╗ ██╗███████╗██╗ ████████╗██████╗ ██████╗
██║ ██╔══██╗██╔══██╗██╔══██╗██║ ██║██╔════╝██║ ╚══██╔══╝██╔══██╗██╔══██╗
██║ ███████║██████╔╝███████║██║ ██║█████╗ ██║ ██║ ██║ ██║██║ ██║
██║ ██╔══██║██╔══██╗██╔══██║╚██╗ ██╔╝██╔══╝ ██║ ██║ ██║ ██║██║ ██║
███████╗██║ ██║██║ ██║██║ ██║ ╚████╔╝ ███████╗███████╗ ██║ ██████╔╝██████╔╝
╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚══════╝ ╚═╝ ╚═════╝ ╚═════╝
[*] Author: thiiagoms
[*] E-mail: hiiagoms@proton.me
[*] Executando os testes...
PASS Tests\Unit\ExampleTest
✓ example
PASS Tests\Feature\Controllers\Category\CategoryControllerTest
✓ category index get route
✓ category single get route
✓ category create post route
✓ category create post route should validate when try create a invalid category
✓ category update put route
✓ category update patch route
✓ category destroy delete route
PASS Tests\Feature\ExampleTest
✓ example
Tests: 9 passed
Time: 0.18s