Universal principles for writing good tests. These apply regardless of framework, language, or repo — discover and follow your repo's specific testing tools, commands, and conventions from its project configuration, contributor guides, existing test files, CI/CD config, and any repo-level AI skills or rules.
Tests verify behavior through public interfaces, not implementation details. Code can change entirely; tests shouldn't break unless behavior changed.
Good tests exercise real code paths through public APIs. They describe what the system does, not how. A good test reads like a specification — "user can checkout with valid cart" tells you exactly what capability exists. These tests survive refactors because they don't care about internal structure.
منهجية التطوير العالمية القائمة على الاختبار وحرفية تصميم الاختبار. المعرفة الأساسية لكتابة الاختبارات التي تركز على السلوك، واستراتيجية السخرية، التقطيع العمودي، وتنفيذ الرصاصة التتبعية. يتم تحميلها تلقائيًا عند كتابة الاختبارات أثناء التنفيذ، أو مراجعة التعليقات، أو تأليف الاختبار المستقل. المحفزات: كتابة الاختبارات، تصميم الاختبار، استراتيجية السخرية، جودة الاختبار، اختبار السلوك، اختبار التكامل، الاختبار أولاً، إعادة البناء باللون الأحمر والأخضر. المصدر: inkeep/team-skills.