Test Doubles - Designing for and using Stubs, Fakes, Mocks, and Spies
Автор: Merlin Wellington
Загружено: 2024-11-02
Просмотров: 590
Описание:
Test doubles (Stubs, fakes, mocks and spies) are unit testing techniques that allow us to test a class without needing (or wanting!) the real implementations of the things the class we are testing depends on. They allow our tests to focus on the class we are testing and ensure that, if a test fails, we know what code is broken. This video shows how we design our code so that we can use these techniques, describes what all of these are with real code examples and discusses the pros and cons of each technique.
In this video I'll walk you through:
Why we need these techniques
what each of them is and how they get coded
When each is useful and when each is insufficient
TIMESTAMPS
0:00 Introduction
0:12 Test Doubles
1:08 Designing our code
1:49 Benefits of test doubles
2:26 Stubs
4:07 Fakes
6:13 Mocks with Mockito
9:35 Spies with Mockito
10:52 Conclusion
ABOUT MY CHANNEL
My channel is about good software engineering practices. We cover introductions to programming in C and Java. But I also have lots of software and computer engineering topics like PIC programming, advanced programming techniques, and things that distinguish good code from code that works.
Check out my channel here:
/ @wizardcraftcode
Don’t forget to subscribe!
CHECK OUT MY OTHER VIDEOS:
C Programming Playlist: • Coding in C
Intro to Java Playlist: • Introduction to Java Programming based on ...
Software Engineering Topics Playlist: • General Software Engineering Topics
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: