RM8039 Add base test infrastructure
Signed-off-by: Philip Schwartz <philip.schwartz@rackspace.com>
This commit is contained in:
parent
60f0657076
commit
3e217d2eae
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,5 +1,6 @@
|
|||||||
/.DS_Store
|
/.DS_Store
|
||||||
/.coverage
|
/.coverage
|
||||||
|
/.tox
|
||||||
/.venv
|
/.venv
|
||||||
/build
|
/build
|
||||||
/cov_html
|
/cov_html
|
||||||
@ -8,3 +9,4 @@
|
|||||||
*.log
|
*.log
|
||||||
*.pyc
|
*.pyc
|
||||||
*.swp
|
*.swp
|
||||||
|
*.whl
|
||||||
|
@ -2,3 +2,4 @@ coverage
|
|||||||
mock
|
mock
|
||||||
nose
|
nose
|
||||||
pep8
|
pep8
|
||||||
|
tox
|
||||||
|
27
tox.ini
Normal file
27
tox.ini
Normal 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}
|
Loading…
x
Reference in New Issue
Block a user