@@ -23,8 +23,13 @@ fixtures for client / consumer / producer testing.
23
23
Unit tests
24
24
------------------
25
25
26
- To run the tests locally, install tox -- `pip install tox `
27
- See https://tox.readthedocs.io/en/latest/install.html
26
+ To run the tests locally, install tox:
27
+
28
+ .. code :: bash
29
+
30
+ pip install tox
31
+
32
+ For more details, see https://tox.readthedocs.io/en/latest/install.html
28
33
29
34
Then simply run tox, optionally setting the python environment.
30
35
If unset, tox will loop through all environments.
@@ -49,8 +54,8 @@ Integration tests
49
54
50
55
.. code :: bash
51
56
52
- KAFKA_VERSION=0.10.1.1 tox -e py27
53
- KAFKA_VERSION=0.8.2.2 tox -e py35
57
+ KAFKA_VERSION=0.8.2.2 tox -e py27
58
+ KAFKA_VERSION=1.0.1 tox -e py36
54
59
55
60
56
61
Integration tests start Kafka and Zookeeper fixtures. This requires downloading
@@ -60,25 +65,24 @@ kafka server binaries:
60
65
61
66
./build_integration.sh
62
67
63
- By default, this will install 0.8.2.2, 0.9.0.1, 0.10.1.1, and
64
- 0.10.2.1 brokers into the servers/ directory. To install a specific version,
65
- e.g., set `KAFKA_VERSION=0.10.2.1 `:
68
+ By default, this will install the broker versions listed in build_integration.sh's `ALL_RELEASES `
69
+ into the servers/ directory. To install a specific version, set the `KAFKA_VERSION ` variable:
66
70
67
71
.. code :: bash
68
72
69
- KAFKA_VERSION=0.10.2 .1 ./build_integration.sh
73
+ KAFKA_VERSION=1.0 .1 ./build_integration.sh
70
74
71
- Then run the tests against supported Kafka versions , simply set the `KAFKA_VERSION `
75
+ Then to run the tests against a specific Kafka version , simply set the `KAFKA_VERSION `
72
76
env variable to the server build you want to use for testing:
73
77
74
78
.. code :: bash
75
79
76
- KAFKA_VERSION=0.10.2. 1 tox -e py27
80
+ KAFKA_VERSION=1.0. 1 tox -e py36
77
81
78
82
To test against the kafka source tree, set KAFKA_VERSION=trunk
79
- [optionally set SCALA_VERSION (defaults to 2.10 )]
83
+ [optionally set SCALA_VERSION (defaults to the value set in ` build_integration.sh ` )]
80
84
81
85
.. code :: bash
82
86
83
- SCALA_VERSION=2.11 KAFKA_VERSION=trunk ./build_integration.sh
84
- KAFKA_VERSION=trunk tox -e py35
87
+ SCALA_VERSION=2.12 KAFKA_VERSION=trunk ./build_integration.sh
88
+ KAFKA_VERSION=trunk tox -e py36
0 commit comments