From 4796d58792a0f190ced62e8e4a7d5e20867f735b Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Wed, 13 Aug 2014 07:57:04 -0700 Subject: 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 --- .gitignore | 2 ++ README.md | 5 +++++ tox.ini | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) 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} -- cgit v1.2.1