Companion repository for the Code with Antonio video course · Watch on YouTube.
Laravel 13 testing with Pest, hands on: feature tests for a real app, from your first test to authorization and file uploads, catching real bugs.
The app has no tests of its own; by the end it has 15 new ones in four files (17 total, 40 assertions, 1.6 s), plus a real fix in NoteFactory
| # | Lesson | Video | Folder |
|---|---|---|---|
| 1 | Why your app needs tests | 0:00 | lessons/01-why-your-app-needs-tests |
| 2 | Your first test | 2:52 | lessons/02-your-first-test |
| 3 | Tests with a database | 5:38 | lessons/03-tests-with-a-database |
| 4 | Testing create and validation | 9:30 | lessons/04-testing-create-and-validation |
| 5 | Testing authorization | 12:01 | lessons/05-testing-authorization |
| 6 | Testing file uploads | 14:22 | lessons/06-testing-file-uploads |
- Laravel 13.x (13.32.0) · PHP 8.4 · Pest 5.2.1 · PHPUnit 13 · SQLite
:memory: - PHP, Composer and the Laravel installer (one command, see lesson 2) or Laravel Herd
- Node.js + npm
cd app
composer install
cp .env.example .env
php artisan key:generate
touch database/database.sqlite
php artisan migrate
npm install && npm run build
composer run devREADME.md this file
lessons/ one folder per lesson: goal, timestamp, commands and files exactly as in the video
app/ the final working project
assets/ thumbnail
MIT — use it for anything, credit appreciated.
Generated on 2026-09-24 from the course scripts. Code with Antonio · AI tutor.