11.6 Tests¶
Sprint: Sprint 11 - Billing
Feature ID: 11.6
Subtasks: 11.6.1
Objective¶
Deliver "Tests" within Sprint 11 - Billing.
Dependencies¶
Aggregated from the subtasks below (prerequisite task IDs and enablers):
- 11.4.1
- 11.4.2
- 11.5.1
Subtasks¶
11.6.1 Billing integration tests and AC-02¶
- ID: 11.6.1
- Title: Add billing integration tests including AC-02 (Testcontainers)
- Description: Testcontainers (Postgres, Kafka) tests covering input read-model consumers, bill-run with idempotency, line composition correctness, PDF generation, reconciliation to PAID, overdue detection, and AC-02 end to end.
- Business Purpose: Verify the billing domain and AC-02 (NFR-17).
- Inputs: 11.2-11.5, AC-02.
- Outputs: Integration test suite.
- Acceptance Criteria:
- FR-21..24 flows pass; AC-02 passes: bill-run aggregates usage, generates a PDF invoice, emits
invoice.generated.v1, and on payment emitsinvoice.paid.v1. - Dependencies: 11.4.1, 11.4.2, 11.5.1
- Complexity: L
Acceptance Criteria¶
Each subtask above carries its own objective, testable acceptance criteria. This feature is complete when every subtask's acceptance criteria are met.
Deliverables¶
- Integration test suite.
Definition of Done¶
- All subtasks (11.6.1) completed and their acceptance criteria verified.
- All listed dependencies satisfied.
- Build and tests green per the global conventions in ../README.md (Section 3).