Laravel Testing 21/24: What is PEST and How It Works

  Рет қаралды 11,983

Laravel Daily

Laravel Daily

Күн бұрын

Link to the full course: laraveldaily.c...
- - - -
Support the channel by checking out my products:
My Laravel courses: laraveldaily.c...
Laravel QuickAdminPanel: quickadminpane...
Livewire Kit Components: livewirekit.com
- - - -
Other places to follow:
My weekly Laravel newsletter: us11.campaign-...
My personal Twitter: / povilaskorop

Пікірлер: 10
@РоманРоманович-я6з
@РоманРоманович-я6з 2 жыл бұрын
Small note: chaining assertion also available in "regular" laravel tests.
@MarienMupenda
@MarienMupenda 2 жыл бұрын
Thank you for the video, I will finally start writing tests after this series.
@Denakino
@Denakino 2 жыл бұрын
You can even save 2 more characters per test by using it() instead of test().
Жыл бұрын
You're the best
@code75581
@code75581 Жыл бұрын
Thanks for the video. Please where the $this comes from as there is no class in the file created with --pest flag
@_KimAngell
@_KimAngell 10 ай бұрын
It comes from Illuminate\Foundation\Testing\TestCase, which is extended as an abstract class in ~/tests/TestCase.php
@coolcha
@coolcha 2 жыл бұрын
Dont know why, but I still prefer phpunit.
@LaravelDaily
@LaravelDaily 2 жыл бұрын
Me too.
@coolcha
@coolcha 2 жыл бұрын
@@LaravelDaily I suppose I feel there is too much "magic" happening, like in the config. If I open the test I feel I will not know what all is being loaded in the background by just looking at the test class.
@maxshaian7260
@maxshaian7260 2 жыл бұрын
My reasons why. 1) Procedural code against OOP. İt makes testing less flexible. I cannot use standard Oop features and have to call different methods to achieve the same. Also no hinting this way. İn particular, laravel standard helpers. 2) Maybe I haven't figured out out, but it's console outputs miss styling, which is hard to read and debug. 3) Tests written with it look less readable for me. I have to check what I call, why and what preparation is made and where. İt's ok for a little number of tests, but for more it is harder. 4) I don't see any advantages before phpunit. Please, guide me if you know. Features like call the same test several times with different inputs looks like a fancier implementation of foreach
Laravel Testing 22/24: What is TDD? How it works: Simple Example
9:08
Eloquent Performance: TOP 3 Mistakes Developers Make
7:59
Laravel Daily
Рет қаралды 50 М.
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
Laracasts Owner Reviews Pest for the First Time
33:15
Laracasts
Рет қаралды 10 М.
I'm new to testing in Laravel (Watch me learn)
22:03
Laravel
Рет қаралды 12 М.
Laravel Feature or Unit Tests: The Difference
9:47
Laravel Daily
Рет қаралды 24 М.
Laravel Testing 23/24: Two More Tests with TDD
7:47
Laravel Daily
Рет қаралды 4,6 М.
What Senior Devs ACTUALLY Do? (And how to become one)
7:12
Laravel Daily
Рет қаралды 7 М.
The Ease of Deployment Tier List for Laravel Developers
21:14
Josh Cirre
Рет қаралды 5 М.
NEW Laravel 11: Review of 11 Features/Changes
9:50
Laravel Daily
Рет қаралды 29 М.
The Pros and Cons of Laravel Livewire
20:16
Josh Cirre
Рет қаралды 12 М.