Emergence Necessitates Mocking | Code Walks 044

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

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 М.
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 17 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 14 МЛН
Covariance and Contravariance
13:31
Christopher Okhravi
Рет қаралды 11 М.
When Microsoft Violated Liskov Substitution Principle in .NET
18:16
Christopher Okhravi
Рет қаралды 38 М.
Only Use Inheritance If You Want Both of These
9:10
Christopher Okhravi
Рет қаралды 13 М.
One of the Greatest Speeches Ever | Steve Jobs
10:31
Motivation Ark
Рет қаралды 33 МЛН
"The Chinese Gambler"
3:31
Grass & Graves
Рет қаралды 106
Thoughts About Unit Testing | Prime Reacts
11:21
ThePrimeTime
Рет қаралды 207 М.
Stupid Barry Find Mellstroy in Escape From Prison Challenge
00:29
Garri Creative
Рет қаралды 17 МЛН