ماذا تثبت اختبارات التكامل
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
know what unit tests cannot show and integration tests can.
الموضوعات المخطط لها
- Unit tests check logic in isolation; integration tests check that parts work together with real infrastructure.
- They catch wrong SQL, missing migrations, mapping errors, and wrong configuration.
- They are slower, so write fewer and aim them at boundaries: database, web layer, messaging.
- Use the same database as production; an in-memory stand-in hides differences.
- Docker must be running for the tests in this module.
تفاصيل المخطط المبدئي
عرض عملي
a diagram: unit test (class + fakes) versus integration test (class + Spring + real PostgreSQL).
اختبر فهمك
Name a bug a unit test with a fake repository cannot find.
أظهر الإجابة
A wrong SQL query or missing column.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.