lightbend/kafka-streams-scala

Mockedstreams for unit testing!

s3ni0r opened this issue ยท 2 comments

Hi,
I have been learning about Kafka streams lately using Scala, and came across this repo which is perfect ๐Ÿ‘, i have seen that for testing (integration) you use an embedded Kafka which is a bit hard to set up for tests, would it be possible to integrate https://github.com/jpzk/mockedstreams which is based on Kafka's ProcessorTopologyTestDriver to avoid having zookeeper and Kafka brokers on each test?
this will enable developers to fiddle with Kafka streams in a lightweight manner.
Thanks!

Mocking is an option for unit tests, but to be honest infrastructure stuff like Kafka needs some integration testing. Hence all the tests are full examples using embedded Kafka server. These are in reality not unit tests, but integration tests. If you look at Confluent's example repositories, they also do the same thing.

Ok, i see your point, thanks for taking the time to answer.