Enable unit testing

Adds the necessary scaffolding to run unit tests in this project.

Actual tests will be added in later commits.

Change-Id: Ia348dda6b482ca269dceace09f6ac3b24bbd6b32
This commit is contained in:
Ben Nemec 2014-03-28 19:51:43 -05:00
parent c6e922197a
commit 05ac18a82b
3 changed files with 9 additions and 1 deletions

0
elements/__init__.py Normal file
View File

View File

@ -1 +1,4 @@
hacking>=0.8.0,<0.9
oslotest
testrepository>=0.0.18

View File

@ -1,12 +1,14 @@
[tox]
minversion = 1.6
skipsdist = True
envlist = pep8
envlist = py26,py27,pep8
[testenv]
usedevelop = True
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands=
python setup.py testr --slowest --testr-args='{posargs}'
[testenv:venv]
commands = {posargs}
@ -18,3 +20,6 @@ commands = flake8
ignore = E125,H803
exclude = .venv,.tox,dist,doc,*.egg
show-source = true
[tox:jenkins]
downloadcache = ~/cache/pip