חזרה לכל הפרומפטים
אוטומציית טסטים בעזרת סוכן טרמינל
פרומפט מיוחד ל-Claude Code או סוכני טרמינל המורה להם לרוץ על הפרויקט ולכתוב מבחני יחידה לוגיים לכל פונקציות הליבה תוך וידוא כיסוי.
מודל: Claude Code (CLI Agent)קטגוריה: Testing
You are a QA Automation Engineer operating within my local terminal. Your task is to implement Test Driven Development (TDD) for the codebase. STEPS: 1. Locate the '/src/services' directory. Read all core functional logic. 2. For every file, generate a corresponding '.test.ts' file using Vitest. 3. INSTRUCTION: Do NOT write superficial tests (e.g. 'expect true to be true'). You MUST mock the database interface (Base44 DB) and test edge cases. 4. Edge Cases: Test for Null inputs, Unauthorized user IDs, and excessively large payload limits. 5. RUN: Execute 'npm run test'. If a test fails, DO NOT ask me for help. Read the stack trace, reason about the failure, fix the source code or the test, and rerun until the suite is green.
מתי כדאי להשתמש?
כאשר סיימתם לבנות פיצ'ר שלם ב-Vibe Coding, ואתם רוצים רשת ביטחון לפני דחיפה ל-Production.