ইউনিট টেস্টিং পৃথক units এর কোড (ফাংশন, মেথড, ক্লাস) isolation এ যাচাই করে — প্রতিটি ছোট অংশ নিজে সঠিকভাবে কাজ করে কিনা তা পরীক্ষা করে। ইউনিট টেস্টগুলি দ্রুত, কেন্দ্রীভূত এবং একটি ভাল টেস্টিং কৌশলের ভিত্তি গঠন করে।
ইউনিট টেস্ট কী
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
