The #1 Misconception About Unit Testing

preview_player
Показать описание
Follow for more Android & Kotlin tips 🙌
Рекомендации по теме
Комментарии
Автор

Conceptually CORRECT. But in practice this advice leads to UnManagable Test Suite. Because this route will need a lot of MOCKING and set up. Which will begin to look more like integration tests than Unit

IncompleteDeveloper
Автор

Truth be told, in the beginning, I always found integration tests easier to write compared to unit tests. I struggled breaking my code into smaller, testable chunks 😅

Yodigity
Автор

Such a life saver, I'll definitely remember this.

LearningIsfun
Автор

This is just factually not true. Classes working together is integration tests. Unit test is a terminus tecnicus in software engineering. Don't redefine it!

mihalykelemen
Автор

Disagree ... When a unit test fails the more parts it is testing the harder to find the problem. This sounds more like integration testing ...

SiamakAshrafi
Автор

This is not eye opening at all. This is eye closing ideas. Don't follow him.

HarshShah