# E2E Test Data Template Save as `PLANS_DIR/integration_tests/test_data.md`. --- ```markdown # E2E Test Data Management ## Seed Data Sets | Data Set | Description | Used by Tests | How Loaded | Cleanup | |----------|-------------|---------------|-----------|---------| | [name] | [what it contains] | [test IDs] | [SQL script / API call / fixture file / volume mount] | [how removed after test] | ## Data Isolation Strategy [e.g., each test run gets a fresh container restart, or transactions are rolled back, or namespaced data, or separate DB per test group] ## Input Data Mapping | Input Data File | Source Location | Description | Covers Scenarios | |-----------------|----------------|-------------|-----------------| | [filename] | `_docs/00_problem/input_data/[filename]` | [what it contains] | [test IDs that use this data] | ## External Dependency Mocks | External Service | Mock/Stub | How Provided | Behavior | |-----------------|-----------|-------------|----------| | [service name] | [mock type] | [Docker service / in-process stub / recorded responses] | [what it returns / simulates] | ## Data Validation Rules | Data Type | Validation | Invalid Examples | Expected System Behavior | |-----------|-----------|-----------------|------------------------| | [type] | [rules] | [invalid input examples] | [how system should respond] | ``` --- ## Guidance Notes - Every seed data set should be traceable to specific test scenarios. - Input data from `_docs/00_problem/input_data/` should be mapped to test scenarios that use it. - External mocks must be deterministic — same input always produces same output. - Data isolation must guarantee no test can affect another test's outcome.