# QA Markdown template - renders docs/qa.yaml to docs/QA_TEST_CASES.md
# {{ project_name }} Test Case Manual

## Test Cases

{% if test_cases %}
{% for tc in test_cases %}
### {{ tc.id }}: {{ tc.feature }}

{% if tc.related_task %}
**Related Task**: {{ tc.related_task }}
{% endif %}

**Precondition**:
{{ tc.precondition }}

**Steps**:
{% for step in tc.steps %}
{{ loop.index }}. {{ step }}
{% endfor %}

**Expected Result**:
{{ tc.expected }}

**Status**: {{ tc.status }}

---

{% endfor %}
{% else %}
(No test cases yet)
{% endif %}

## Statistics

- **Total**: {{ statistics.total if statistics else 0 }}
- **By Status**:
  - 🟢 Pass: {{ statistics.by_status.pass if statistics and statistics.by_status else 0 }}
  - 🟡 Partial: {{ statistics.by_status.partial if statistics and statistics.by_status else 0 }}
  - 🔴 Fail: {{ statistics.by_status.fail if statistics and statistics.by_status else 0 }}
  - ⚪ Skip: {{ statistics.by_status.skip if statistics and statistics.by_status else 0 }}
  - TODO: {{ statistics.by_status.todo if statistics and statistics.by_status else 0 }}
