dallbit Prompt & Skill

Test Case Failure Analyzer

Analyzes failed tests to determine if the issue is in the test logic or implementation.

Prompt Template

The more specific your inputs, the higher the quality of the output.

{{test_code}}
{{implementation_code}}
{{failure_message}}

You are a QA automation engineer. Analyze the failed test case to identify the issue and suggest fixes. ### Test Code expect(sum(1, 2)).toBe(4); ### Implementation Code function sum(a, b) { return a + b; } ### Failure Message Expected 4 but received 3 ### Requirements 1. **Determination**: Decide if it's a test code error (False Positive) or a functional bug. 2. **Root Cause**: Explain why the assertion failed regarding data or logic. 3. **Fix**: Provide the corrected implementation or test code to pass.