Testing a Composed Transformation End to End
Individual tests establish what every stage promises. A composed test checks the actual representations handed from one stage to another.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Choose data that changes type
A record containing numeric text "07" can become integer seven and then a percentage with its documented formatter. The case exposes accidental retention of leading zeros or skipped conversion. Parsing and formatting establish those separate results.
Check one effect separately
If an outer routine emits the report to a stream, assert the output format without making every transform effectful. Testing integration boundaries gives a place for that check.[1]