
4/24/2019 · Andy Chambers
What this post added
Introduces the 'Test Machine' library for end-to-end testing of event-driven systems, addressing the limitations of unit tests and existing Kafka Streams testing tools like TopologyTestDriver and Fluent Kafka Streams Tests. Details a testing pattern involving writing input events, waiting for processing, and asserting output. Explains the 'Test Machine' architecture with 'write' and 'watch' commands, portable test execution against various targets (local Kafka, REST Proxy, mock topology), and performance considerations. Provides a Clojure code example using the Test Machine for a word count demo.