Emergence Necessitates Mocking | Code Walks 044

  Рет қаралды 1,369

Christopher Okhravi

Christopher Okhravi

Күн бұрын

When to mock and when to not mock? While I don't have a single answer to rule em all, I confidently believe this: When you don't know the outcome -- you simply have to mock. Because if you can't test output, you have to test interactions, But if your method is query (i.e. it returns something) and not only a command (i.e. it mutates state) then we should sensibly want to test the return value and not merely the interactions. But since we don't know what it will return we have to mock and assert over mocks.
Classicist vs Mockist Testing
• Classicist vs Mockist ...
Unit vs Integration Testing
• Unit vs Integration te...
GEAR USED
► CAMERA: Canon 70D amzn.to/29wR8wG
► LENS: Canon 10-18mm amzn.to/29srabL
► TRIPOD: JOBY Gorillapod Zoom amzn.to/29AdkHT

Пікірлер
Downcasting Is A Code Smell | Code Walks 043
6:58
Christopher Okhravi
Рет қаралды 6 М.
Don't Mock 3rd Party Code
19:56
Continuous Delivery
Рет қаралды 38 М.
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 7 МЛН
Which one is the best? #katebrush #shorts
00:12
Kate Brush
Рет қаралды 20 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 13 МЛН
逃(致敬父亲)
2:48
王同学Able - Topic
Рет қаралды 364
The Square-Rectangle Problem
9:59
Christopher Okhravi
Рет қаралды 9 М.
Thoughts About Unit Testing | Prime Reacts
11:21
ThePrimeTime
Рет қаралды 206 М.
Only Use Inheritance If You Want Both of These
9:10
Christopher Okhravi
Рет қаралды 13 М.
7 Tips to Grow as a Developer
7:25
Christopher Okhravi
Рет қаралды 14 М.
AI and product management | Marily Nika (Meta, Google)
48:02
Lenny's Podcast
Рет қаралды 46 М.
When Microsoft Violated Liskov Substitution Principle in .NET
18:16
Christopher Okhravi
Рет қаралды 36 М.
One of the Greatest Speeches Ever | Steve Jobs
10:31
Motivation Ark
Рет қаралды 33 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 7 МЛН