diff options
author | Dana Powers <dana.powers@rd.io> | 2014-08-13 07:57:04 -0700 |
---|---|---|
committer | Dana Powers <dana.powers@rd.io> | 2014-08-13 08:54:13 -0700 |
commit | 4796d58792a0f190ced62e8e4a7d5e20867f735b (patch) | |
tree | 7f1ba99fada37d386fd63eb478865fdf62266d74 | |
parent | e35835719ea32b914f6c19b4e16ae9a0007b18f5 (diff) | |
download | kafka-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-- | .gitignore | 2 | ||||
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | tox.ini | 2 |
3 files changed, 8 insertions, 1 deletions
@@ -6,3 +6,5 @@ dist MANIFEST env servers/*/kafka-bin +.coverage +.noseids @@ -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 @@ -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} |