zio-kafka-testkit
library
In this version, we renamed the zio-kafka-test-utils
library to zio-kafka-testkit
, we changed its base package from zio.kafka
to zio.kafka.testkit
, and we re-wrote the documentation on how to write tests when using zio-kafka and zio-kafka-testkit.
To migrate, you will have to:
- Change in your
build.sbt
:
// Before
libraryDependencies += "dev.zio" %% "zio-kafka-test-utils" % "2.3.0" % Test
// After
libraryDependencies += "dev.zio" %% "zio-kafka-testkit" % "2.3.1" % Test
- Fix your imports
// Before
import zio.kafka.ZIOSpecWithKafka
import zio.kafka.KafkaTestUtils
import zio.kafka.KafkaRandom
import zio.kafka.embedded.Kafka
// After
import zio.kafka.testkit.ZIOSpecWithKafka
import zio.kafka.testkit.KafkaTestUtils
import zio.kafka.testkit.KafkaRandom
import zio.kafka.testkit.Kafka
You can find the new documentation here: https://zio.dev/zio-kafka/writing-tests
Other changes
- We un-deprecated the
ZIOSpecWithKafka
trait, and we added some documentation about its purpose and usage in the documentation.
See https://zio.dev/zio-kafka/writing-tests#ziospecwithkafka-trait
All Changes
- Write
zio-kafka-testkit
documentation @guizmaii (#846) - Rename the
zio-kafka-test-utils
module tozio-kafka-testkit
&& change its base package fromzio.kafka
tozio.kafka.testkit
@guizmaii (#845) - Update zio-logging-slf4j2 to 2.1.13 @github-actions (#854)
- Un-deprecate
ZIOSpecWithKafka
&& Add doc explaining when to use it @guizmaii (#851) - Update jackson-databind to 2.15.1 @github-actions (#850)
- Add minimal "manual consumer" benchmarks @guizmaii (#849)
- Update sbt to 1.8.3 @github-actions (#847)
- Remove all rights reserved @erikvanoosten (#843)
- Update zio-kafka to 2.3.0 @github-actions (#842)
- Update README.md @zio-assistant (#841)
- Bump version, remove all rights reserved @erikvanoosten (#840)