summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Powers <dana.powers@rd.io>2014-08-13 07:57:04 -0700
committerDana Powers <dana.powers@rd.io>2014-08-13 08:54:13 -0700
commit4796d58792a0f190ced62e8e4a7d5e20867f735b (patch)
tree7f1ba99fada37d386fd63eb478865fdf62266d74
parente35835719ea32b914f6c19b4e16ae9a0007b18f5 (diff)
downloadkafka-python-4796d58792a0f190ced62e8e4a7d5e20867f735b.tar.gz
Update tox.ini to use {posargs} to configure nosetests.
To override defaults, use `tox -- --your --nosetest --options --here` Update default nosetest settings to use verbose logging and show test ids add .coverage and .noseids to .gitignore Add example for running single unit test to README
-rw-r--r--.gitignore2
-rw-r--r--README.md5
-rw-r--r--tox.ini2
3 files changed, 8 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 18441a7..8cf9c4e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,5 @@ dist
MANIFEST
env
servers/*/kafka-bin
+.coverage
+.noseids
diff --git a/README.md b/README.md
index ad4f7ab..f20f2ad 100644
--- a/README.md
+++ b/README.md
@@ -190,6 +190,11 @@ pip install python-snappy
tox
```
+## Run a single unit test
+```shell
+tox -e py27 -- -v --with-id 102
+```
+
## Run the integration tests
The integration tests will actually start up real local Zookeeper
diff --git a/tox.ini b/tox.ini
index 3c5fd17..09ec1e3 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,6 +8,6 @@ deps =
mock
python-snappy
commands =
- nosetests --with-coverage --cover-erase --cover-package kafka []
+ nosetests {posargs:-v --with-id --with-coverage --cover-erase --cover-package kafka}
setenv =
PROJECT_ROOT = {toxinidir}