FundingCircle / jackdaw

A Clojure library for the Apache Kafka distributed streaming platform.
https://fundingcircle.github.io/jackdaw/
BSD 3-Clause "New" or "Revised" License
369 stars 80 forks source link

Add documentation about mock vs broker test differences #204

Closed AndreaCrotti closed 4 years ago

AndreaCrotti commented 4 years ago

There are some subtle differences between running tests with the mock transport vs running tests using the broker.

One of them for example is the fact that with the mock transport, if you write to a topic which the topology under test doesn't read from, you will get an "Unknown topic" error.

That doesn't happen if you use the broker transport. It's actually not a Jackdaw issue but just related with the TopologyTestDriver from Kafka, but even googling this problem doesn't give much useful.

There are probably a few others of these differences, would be nice to collect them all as part of the project documentation.