Skillpedia
الاختبار75k · #2895

integration-testing

ما الذي تفعله

تراجع هذه المهارة مسارات العمل الأساسية وتضيف اختبارات تغطي طريقة تفاعل الخدمات وقواعد البيانات والمكونات. وهي موجهة للمطورين الذين يريدون إصدارات موثوقة.

متى تستخدمها

  • ✓عندما تنجح ميزة في اختبارات الوحدات لكنها تفشل بعد ربط كل أجزائها.
  • ✓عندما تستدعي مسارات API الخدمات وقواعد البيانات دون اختبارات بينهما.
  • ✓عندما تريد فحوصات آلية لأهم مسارات المستخدمين.

رابط المهارة

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/integration-testing/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/integration-testing/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل يمكنك كتابة اختبارات تكامل لمسار الدفع في تطبيقي؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يحدد الوكيل النقاط التي تلتقي فيها أجزاء النظام، ويكتب اختبارات لتلك الروابط. ويقترح استخدام قاعدة بيانات اختبار حقيقية بدلًا من محاكاة كل شيء.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Write integration tests for key workflows

Unit tests verify individual functions in isolation, but they can't catch the bugs that occur when those functions interact — a perfectly correct validation function and a correct database function can still fail when wired together incorrectly. Integration tests catch these wiring bugs before they reach production, where they're expensive to diagnose.

Quick Reference

  • Integration tests verify that multiple units work correctly together
  • Test at the boundary where different parts of your system meet
  • Use a real database in tests (test DB or in-memory) rather than mocking everything
  • Test happy paths and the most critical error paths

Check

Identify the key integration points in this codebase — where API routes call services, where services interact with the database, and where components interact with state management. Are these tested?

Fix

Write integration tests for the identified critical paths, testing the interactions between components rather than each in isolation.

Explain

Explain integration testing, how it differs from unit and E2E testing, and what tools to use for API and component integration tests.

Code Review

Review tests, CI workflows, and enforcement points related to Write integration tests for key workflows. Flag exact gaps where the rule is not automatically verified or where failures do not block regressions.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/testing/integration-testing

الأسئلة الشائعة

ما الفرق بينها وبين اختبارات الطرف للطرف (end-to-end)؟

تصف المهارة اختبارات التكامل بأنها تفحص عدة وحدات تعمل معًا، بينما تغطي الاختبارات الطرفية رحلة المستخدم كاملة.

هل يجب محاكاة قاعدة البيانات؟

تنصح المهارة بقاعدة بيانات اختبار حقيقية، أو قاعدة بيانات في الذاكرة حيثما أمكن.

أي المسارات يجب اختبارها؟

تقترح المهارة المسارات الناجحة وأهم مسارات الخطأ الحرجة.

التفاصيل

الوصف الأصلي من المؤلف

Use when reviewing CI coverage, automated checks, or test strategy related to Write integration tests for key workflows. Focus on whether the rule is continuously verified, not just documented.

repo: thedaviddias/Front-End-Checklist

الشعبية

نجوم GitHub
75k
الترتيب
#2895
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة