Skip to content

Commit

Permalink
Update tox.ini to use {posargs} to configure nosetests.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Dana Powers committed Aug 13, 2014
1 parent e358357 commit 4796d58
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ dist
MANIFEST
env
servers/*/kafka-bin
.coverage
.noseids
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 4796d58

Please sign in to comment.