소스 검색

Add contract/test example to test plan template

main
Nano 3 시간 전
부모
커밋
5247e4dd57
1개의 변경된 파일21개의 추가작업 그리고 0개의 파일을 삭제
  1. +21
    -0
      .ai/templates/test-plan.md

+ 21
- 0
.ai/templates/test-plan.md 파일 보기

@@ -26,6 +26,27 @@
- [ ] Failure modes are covered.
- [ ] Postconditions are observable.

## Example

Feature: Export a territory

Contract under test:

- Preconditions: The territory exists and the user is authorized.
- Inputs: Territory ID.
- Outputs: A downloadable ZIP file.
- Postconditions: The ZIP contains the generated XLSX and PDFs.
- Invariants: The exported files are named consistently.
- Failure modes: Missing territory, file write failure, or export timeout.
- Side effects: Temporary export files may be created and cleaned up after download.

Test focus:

- Verify the export is rejected when the territory is missing.
- Verify the ZIP contains both the spreadsheet and the PDFs.
- Verify failed file writes are reported as errors.
- Verify cleanup happens after download.

---

## Self-Evolution Protocol


불러오는 중...
취소
저장

Powered by TurnKey Linux.