Skip to content

Commit 27a7569

Browse files
committed
Complete tox.ini so it is usable by just about anyone.
1 parent b2b6159 commit 27a7569

File tree

2 files changed

+36
-7
lines changed

2 files changed

+36
-7
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,18 @@ Tests
157157

158158
In order to run full test suite, simply execute:
159159

160-
$ tox
160+
$ tox -r
161161

162-
**NOTE**: Requires `tox` ( please install with `pip install tox` ) and several supported versions of Python.
162+
**NOTE**: Requires `tox` (please install with `pip install tox`), several supported versions of Python on your path, and `librdkafka` [installed](https://github.com/confluentinc/confluent-kafka-python/blob/master/tools/bootstrap-librdkafka.sh) into `tmp-build`.
163163

164164

165165
**Run integration tests:**
166166

167-
$ examples/integration_test.py <kafka-broker> [<test-topic>]
167+
To run the intergration tests, uncomment the following line from `tox.ini` and add the paths to your Kafka and Confluent Schema Registry instances. If no Schema Registry path is provided then no AVRO tests will by run.
168168

169-
**WARNING**: These tests require an active Kafka cluster and will make use of a topic named 'test'.
169+
examples/integration_test.py <kafka-broker> [<test-topic>] [<schema-registry>]
170+
171+
**WARNING**: These tests require an active Kafka cluster and will create new topics.
170172

171173

172174

tox.ini

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,37 @@
22
envlist = flake8,py27,py34,py35
33

44
[testenv]
5+
setenv =
6+
CPPFLAGS=-I{toxinidir}/tmp-build/include
7+
LDFLAGS=-L{toxinidir}/tmp-build/lib
8+
C_INCLUDE_PATH={toxinidir}/tmp-build/include
9+
LD_LIBRARY_PATH={toxinidir}/tmp-build/lib
10+
commands =
11+
pip install -v .
12+
py.test -v --timeout 20 --ignore=tmp-build --import-mode append
13+
#python examples/integration_test.py [yourhost:yourport] confluent-kafka-testing http://yourhost:yourport
14+
15+
[base]
16+
deps =
17+
pytest
18+
pytest-timeout
19+
fastavro
20+
requests
21+
22+
[testenv:py27]
23+
deps =
24+
{[base]deps}
25+
avro
26+
27+
[testenv:py34]
28+
deps =
29+
{[base]deps}
30+
avro-python3
31+
32+
[testenv:py35]
533
deps =
6-
pytest
7-
pytest-timeout
8-
commands = py.test -v --timeout 20 --ignore=tmp-build
34+
{[base]deps}
35+
avro-python3
936

1037
[testenv:flake8]
1138
deps = flake8

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy