Testing Fundamentals: Guide to Mocking, Stubbing, and Faking
Learn to isolate your code and write reliable unit tests by mastering mock objects, stubs, and fakes through clear written explanations and conceptual quizzes.
حول هذه الدورة
Writing unit tests is easy until your code starts interacting with databases, external APIs, or complex network services. To write fast, reliable tests, you must master the art of isolating your code using test doubles. This text-only course guides you through the foundational concepts of mocking, stubbing, and faking. You will transition from guessing which test double to use to confidently designing isolated, maintainable test suites. Through clear written breakdowns and targeted self-assessment quizzes, you will solidify your understanding of modern testing patterns.
What you'll learn:
- Understand the core differences between mocks, stubs, fakes, dummies, and spies.
- Identify when to replace real dependencies with lightweight test doubles to speed up test execution.
- Apply dependency injection principles to make your codebase inherently more testable.
- Configure mock behaviors and verify interactions without over-specifying your tests.
- Practice your knowledge through written scenarios and conceptual quiz questions designed to challenge your understanding.
- Avoid common testing pitfalls like over-mocking and tight coupling between tests and implementation details.
You will start with the basic terminology of test doubles, exploring why and when we isolate code. From there, you will read through dedicated modules for stubs, fakes, and mocks, comparing their real-world use cases and testing your knowledge with written quizzes at every stage. This course is designed for beginner to intermediate developers who understand basic programming and want to write better unit tests. No advanced testing experience is required. Start reading today to write cleaner, faster, and more reliable tests.
ما الذي ستحصل عليه
-
📜
شهادة إتمام
أضفها إلى ملفك على LinkedIn -
💬
مدرّس AI شخصي
عالق في درس؟ اسأل مدرّسك المدمج أي شيء، في أي وقت. -
🎧
النسخة الصوتية مضمَّنة
تعلَّم أثناء تنقُّلك — دون شاشة -
♾️
وصول مدى الحياة
عُد متى شئت، بلا انتهاء -
📱
الهاتف أو الكمبيوتر
يعمل في أي مكان وعلى أي جهاز -
💸
استرداد خلال 14 يومًا
دون أسئلة -
⚡
قصير ومركَّز
1 ساعة 10 دقيقة من المحتوى التطبيقي
المراجعات
لا توجد مراجعات بعد — كن أول من يشارك تجربته.
المتعلمون أخذوا أيضًا
🎓 بشهادة
وظائف صناعة الدفاع: التحضير للمقابلات
شهادة
تطبيق عملي
SR 90.00
→
🏆 الأكثر شعبية
ASP.NET Core CI/CD: أتمتة سير عمل التطوير
شهادة
تطبيق عملي
SR 90.00
→
🏆 الأكثر شعبية
اختبار فعال للتطبيقات الأساسية لـ.NET وتصحيح أخطائها
شهادة
تطبيق عملي
SR 90.00
→
🔥 مطلوب
اختبار جودة البرامج: دليل المبتدئين إلى اختبار جودة البرامج اليدوي والمدعوم بالذكاء الاصطناعي
شهادة
تطبيق عملي
SR 90.00
→
الأسئلة الشائعة
ما الذي أحتاجه لأخذ هذه الدورة؟ +
يكفي هاتف أو كمبيوتر متصل بالإنترنت. بدون تثبيتات أو أجهزة خاصة.
كيف يمكنني الدفع؟ +
بالبطاقة عبر Stripe. لا نخزن بيانات البطاقة — يتولى Stripe ذلك بأمان.
هل يمكنني استرداد المال؟ +
نعم — استرداد كامل خلال 14 يومًا، دون أسئلة.
إلى متى يستمر وصولي؟ +
إلى الأبد. بمجرد الشراء، الدورة لك تعود إليها متى شئت.
هل سأحصل على شهادة؟ +
نعم. عند الإتمام ستحصل على شهادة يمكنك إضافتها إلى ملفك في LinkedIn.
مصمَّم للعاملين في
التقنية
التصميم
المالية
التسويق
الرعاية الصحية
التعليم
الضيافة
التصنيع
×2
اشحن مرة واحدة وادفع النصف
أضف SR 380 → احصل على 200 أرصدة. كل فئة تكلف SR 47.50 بدلاً من SR 90.00. الأرصدة لا تنتهي أبداً.
SR 380
200 رصيد
SR 47.50 / درس
أفضل قيمة
SR 950
550 رصيد
SR 43.18 / درس
SR 1,900
1200 رصيد
SR 39.58 / درس
بدون اشتراك. الرصيد يصلح لأي درس ولا ينتهي.