---
run: {{run_id}}
work_item: {{work_item_id}}
intent: {{intent_id}}
generated: {{generated_at}}
status: {{status}}
---

# Test Report: {{title}}

## Summary

| Category | Passed | Failed | Skipped | Coverage |
|----------|--------|--------|---------|----------|
| Unit | {{unit_passed}} | {{unit_failed}} | {{unit_skipped}} | {{unit_coverage}}% |
| Integration | {{integration_passed}} | {{integration_failed}} | {{integration_skipped}} | {{integration_coverage}}% |
| **Total** | {{total_passed}} | {{total_failed}} | {{total_skipped}} | {{total_coverage}}% |

## Acceptance Criteria Validation

{{#each acceptance_criteria}}
- {{#if this.passed}}✅{{else}}❌{{/if}} **{{this.criterion}}** — {{this.status}}
{{/each}}

## Tests Written

### Unit Tests

{{#each unit_tests}}
- `{{this.file}}` — {{this.description}}
{{/each}}

### Integration Tests

{{#each integration_tests}}
- `{{this.file}}` — {{this.description}}
{{/each}}

## Test Commands

```bash
# Run all tests
{{test_command}}

# Run with coverage
{{coverage_command}}
```

## Coverage Details

{{#if coverage_details}}
| Module | Statements | Branches | Functions | Lines |
|--------|------------|----------|-----------|-------|
{{#each coverage_details}}
| `{{this.module}}` | {{this.statements}}% | {{this.branches}}% | {{this.functions}}% | {{this.lines}}% |
{{/each}}
{{else}}
Coverage details not available.
{{/if}}

## Issues Found

{{#if issues}}
| Issue | Severity | Status |
|-------|----------|--------|
{{#each issues}}
| {{this.description}} | {{this.severity}} | {{this.status}} |
{{/each}}
{{else}}
No issues found during testing.
{{/if}}

## Ready for Completion

- [{{#if all_tests_pass}}x{{else}} {{/if}}] All tests passing
- [{{#if coverage_met}}x{{else}} {{/if}}] Coverage target met ({{coverage_target}}%)
- [{{#if acceptance_met}}x{{else}} {{/if}}] All acceptance criteria validated
- [{{#if no_critical_issues}}x{{else}} {{/if}}] No critical issues open

---
*Generated by specs.md - fabriqa.ai FIRE Flow Run {{run_id}}*
