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:
0
elements/__init__.py
Normal file
0
elements/__init__.py
Normal file
@@ -1 +1,4 @@
|
|||||||
hacking>=0.8.0,<0.9
|
hacking>=0.8.0,<0.9
|
||||||
|
|
||||||
|
oslotest
|
||||||
|
testrepository>=0.0.18
|
||||||
|
|||||||
7
tox.ini
7
tox.ini
@@ -1,12 +1,14 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 1.6
|
minversion = 1.6
|
||||||
skipsdist = True
|
skipsdist = True
|
||||||
envlist = pep8
|
envlist = py26,py27,pep8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop = True
|
usedevelop = True
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
|
commands=
|
||||||
|
python setup.py testr --slowest --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
@@ -18,3 +20,6 @@ commands = flake8
|
|||||||
ignore = E125,H803
|
ignore = E125,H803
|
||||||
exclude = .venv,.tox,dist,doc,*.egg
|
exclude = .venv,.tox,dist,doc,*.egg
|
||||||
show-source = true
|
show-source = true
|
||||||
|
|
||||||
|
[tox:jenkins]
|
||||||
|
downloadcache = ~/cache/pip
|
||||||
|
|||||||
Reference in New Issue
Block a user