Unit Testing & Mocks Fakes and Stubs - No Code Learning
Автор: The Theory Of Code
Загружено: 2025-02-14
Просмотров: 645
Описание:
Sometime some of the simplest possible things when ignored, can cause major problem and unit testing in software development is one such thing.
Many a times we don't understand the concept and rationale behind unit testing hence I'm creating this video to explain the concept and idea behind unit testing as well as why we need thing like mocks fakes and stubs whcih are collectively called test doubles in the world of unit testing.
All unit tests are written using arrange act assert and has to be independent and should be able to complete its running within milliseconds. The unit tests not only builds up the functional based but also build up a regression test suite over a period of time.
The reason why unit testing is done because we can't ascetain the quality of tests by looking. at it, because software is not a physical entity, that's why we need unit testing becasue there is no other way to ascetain the quality of the software but by using unit tests.
The test doubles like mocks fakes and stubs are there to remove the dependecies between the software so that a unit of code can be tested in isolation. While mocks are used for checking the system behaviour, stubs are used for generating predefined outputs. Fakes are similar to a simulator and can simulate functional as well as non functional requirements.
Here are the chapters of this video
Timecodes
00:00 Why to worry about unit testing software development
00:31 Why we do unit tests and what are mocks fakes and stubs
01:08 Why we do unit testing
02:04 Misconceptions about the unit testing
02:52 What’s a unit in unit testing
03:51 Definition of unit testing
04:36 Running unit tests independently
05:24 Mocks Fakes and Stubs of Unit Testing
05:55 What Mocks stubs and fakes do
06:44 Mocks in Unit Testing
08:16 Stubs in unit testing
09:06 What Mocks and Stubs can do in unit testing
09:30 Fakes in unit testing
11:07 Arrange act and asset of unit testing
#unittesting #softwarequality #testing
#cognitiveprogrammer
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: