You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,15 @@
1
1
# scalatest-embedded-kafka
2
-
A library that provides an in-memory Kafka broker to run your ScalaTest specs against. It uses Kafka 0.8.2.2 and ZooKeeper 3.4.6.
2
+
A library that provides an in-memory Kafka broker to run your ScalaTest specs against. It uses Kafka 0.9.0.0 and ZooKeeper 3.4.7.
3
+
4
+
**NOTE** the _master_ branch is now using Apache Kafka 0.9.x. The version supporting Kafka 0.8.x can be found [here](https://github.com/manub/scalatest-embedded-kafka/tree/kafka-0.8)
3
5
4
6
Inspired by https://github.com/chbatey/kafka-unit
5
7
6
8
## How to use
7
9
8
10
scalatest-embedded-kafka is available on Bintray and Maven Central, compiled for both Scala 2.10 and 2.11
9
11
10
-
* In your `build.sbt` file add the following dependency: `"net.manub" %% "scalatest-embedded-kafka" % "0.4.1" % "test"`
12
+
* In your `build.sbt` file add the following dependency: `"net.manub" %% "scalatest-embedded-kafka" % "0.4.1-kafka09" % "test"`
11
13
* Have your `Spec` extend the `EmbeddedKafka` trait.
12
14
* Enclose the code that needs a running instance of Kafka within the `withRunningKafka` closure.
0 commit comments