Jarbawar raka'a tana tabbatar da kowane raka'a na lambar (ayyuka, hanyoyi, azuzuwan) cikin keɓewa — tabbatar cewa kowane ƙaramin yanki yana aiki daidai a kansa. Jarbawar raka'a masu sauri ne, mai mahimmanci, kuma suna samar da tushe na dabarun jarbawar da kyau.
Menene jarbawar raka'a
A UNIT test verifies the smallest testable piece (a function/method) in ISOLATION:
→ test ONE thing; give inputs, check the output/behavior
→ ISOLATED from dependencies (database, network, other units) — mock/stub those
→ FAST (no real I/O), focused, deterministic
