summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Powers <dana.powers@rd.io>2014-08-31 10:50:54 -0700
committerDana Powers <dana.powers@rd.io>2014-09-04 18:05:05 -0700
commit404c56a55d95783a027313ae69d43097ceb18ab6 (patch)
tree4920463155d4bc1398fad3236eb20d59bed2564f
parent31a4b1d66f5db4c8b470d526624521e2efff97b1 (diff)
downloadkafka-python-404c56a55d95783a027313ae69d43097ceb18ab6.tar.gz
Add a little more detail to test instructions in README
-rw-r--r--README.md19
1 files changed, 16 insertions, 3 deletions
diff --git a/README.md b/README.md
index 4c4a230..a866ce7 100644
--- a/README.md
+++ b/README.md
@@ -217,8 +217,21 @@ pip install python-snappy
tox
```
-## Run a single unit test
+## Run a subset of unit tests
```shell
+# run protocol tests only
+tox -- -v test.test_protocol
+```
+
+```shell
+# test with pypy only
+tox -e pypy
+```
+
+```shell
+# Run only 1 test, and use python 2.7
+tox -e py27 -- -v --with-id --collect-only
+# pick a test number from the list like #102
tox -e py27 -- -v --with-id 102
```
@@ -239,11 +252,11 @@ and optionally set SCALA_VERSION (defaults to 2.8.0, but 2.10.1 is recommended)
SCALA_VERSION=2.10.1 KAFKA_VERSION=trunk ./build_integration.sh
```
-Then run the tests against supported Kafka versions:
+Then run the tests against supported Kafka versions, simply set the `KAFKA_VERSION`
+env variable to the server build you want to use for testing:
```shell
KAFKA_VERSION=0.8.0 tox
KAFKA_VERSION=0.8.1 tox
KAFKA_VERSION=0.8.1.1 tox
KAFKA_VERSION=trunk tox
```
-