RM8039 Add base test infrastructure

Signed-off-by: Philip Schwartz <philip.schwartz@rackspace.com>
This commit is contained in:
Philip Schwartz 2014-07-31 11:05:09 -04:00
parent 60f0657076
commit 3e217d2eae
3 changed files with 30 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,5 +1,6 @@
/.DS_Store
/.coverage
/.tox
/.venv
/build
/cov_html
@ -8,3 +9,4 @@
*.log
*.pyc
*.swp
*.whl

View File

@ -2,3 +2,4 @@ coverage
mock
nose
pep8
tox

27
tox.ini Normal file
View File

@ -0,0 +1,27 @@
[tox]
envlist = py26,py27,py33,py34,pep8
[testenv]
setenv = LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = nosetests -v {posargs}
[testenv:pep8]
deps = pep8
commands = pep8 --repeat --show-source striker tests
[testenv:cover]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = nosetests -v --with-coverage --cover-package=striker \
--cover-branches --cover-html --cover-html-dir=cov_html \
{posargs}
[testenv:shell]
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = {posargs}