Build a layered test suite that catches transformation, contract, and replay defects before production.
#testing
#data-quality
#ci-cd
#contracts
Prompt
Design a pragmatic test strategy for a production data pipeline. Optimize for catching costly defects early without making CI slow or brittle.
Pipeline architecture: [sources → transformations → destinations]
Technologies: [dbt / Spark / Airflow / Kafka / warehouse]
Business-critical invariants: [rules]
Source contracts and mutation patterns: [details]
Deployment cadence and CI budget: [minutes]
Historical incident examples: [bugs that escaped]
Existing tests:
[Paste test inventory or code]
Produce:
1. Risk-based test matrix mapping failure modes to test layers
2. Unit tests for transformation logic and difficult boundary cases
3. Schema/contract tests at every producer-consumer boundary
4. Integration tests against real engines using small deterministic fixtures
5. Idempotency, replay, late-data, duplicate, delete, and schema-drift tests
6. End-to-end canary and production validation strategy
7. Test-data design that avoids production PII
8. CI stages, parallelization, ownership, and runtime targets
9. Flaky-test policy and failure-triage workflow
10. Coverage gaps ranked by business impact, not line coverage
Include concrete test cases with inputs and expected outputs. Explain which checks should block deployment and which should alert after deployment.
Customize
Fill Variables
Details
Model
Claude 3
Category
Data Engineering
Added On
Jul 12, 2026
Prompts are starting points. Review outputs before using them in production.