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
This commit is contained in:
Dana Powers
2014-08-13 07:57:04 -07:00
parent e35835719e
commit 4796d58792
3 changed files with 8 additions and 1 deletions

2
.gitignore vendored
View File

@@ -6,3 +6,5 @@ dist
MANIFEST
env
servers/*/kafka-bin
.coverage
.noseids

View File

@@ -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

View File

@@ -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}