Skip to content

Commit 4796d58

Browse files
author
Dana Powers
committed
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
1 parent e358357 commit 4796d58

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ dist
66
MANIFEST
77
env
88
servers/*/kafka-bin
9+
.coverage
10+
.noseids

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,11 @@ pip install python-snappy
190190
tox
191191
```
192192

193+
## Run a single unit test
194+
```shell
195+
tox -e py27 -- -v --with-id 102
196+
```
197+
193198
## Run the integration tests
194199

195200
The integration tests will actually start up real local Zookeeper

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ deps =
88
mock
99
python-snappy
1010
commands =
11-
nosetests --with-coverage --cover-erase --cover-package kafka []
11+
nosetests {posargs:-v --with-id --with-coverage --cover-erase --cover-package kafka}
1212
setenv =
1313
PROJECT_ROOT = {toxinidir}

0 commit comments

Comments
 (0)