Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bts/test-kafka

An in-process Kafka and ZooKeeper runner for testing in Clojure
https://github.com/bts/test-kafka

clojure kafka test zookeeper

Last synced: 27 days ago
JSON representation

An in-process Kafka and ZooKeeper runner for testing in Clojure

Awesome Lists containing this project

README

        

# test-kafka [Circle CI](https://circleci.com/gh/bts/test-kafka/tree/master)

An in-process Kafka and ZooKeeper runner for testing in Clojure. Adapted from [clj-kafka](https://github.com/pingles/clj-kafka)'s integration tests.

The current version depends on Kafka 0.8.2 or higher. If you require compatibility with Kafka 0.8.0 or 0.8.1, use test-kafka [0.1.0](https://github.com/bts/test-kafka/tree/0.1.0).

## Usage

Install with Leiningen:

```clojure
[test-kafka "0.2.0"]
```

Then:

```clojure
(require 'test-kafka)

(test-kafka/with-broker [kafka-port zk-port topic-name]
(comment "interact with kafka"))

(test-kafka/with-zk [port]
(comment "interact with zookeeper"))
```

## License

Copyright © 2014 Brian Schroeder

Distributed under the MIT License.

Copyright © 2013 Paul Ingles

Distributed under the Eclipse Public License, the same as Clojure.