Preparing for OpenStack testing environment
Renamed logging.py to log.py. I was getting import errors because it conflicts with logging in the stdlib.changes/87/83087/1
parent
ad602702f5
commit
ce8bc60414
@ -0,0 +1,4 @@
|
||||
[DEFAULT]
|
||||
test_command=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -s teeth_agent/tests/ -p "*.py" $LISTOPT $IDOPTION
|
||||
test_id_option=--load-list $IDFILE
|
||||
test_list_option=--list
|
@ -1,8 +0,0 @@
|
||||
pep257==0.2.4
|
||||
plumbum==1.3.0
|
||||
pep8==1.4.6
|
||||
pyflakes==0.7.3
|
||||
junitxml==0.7
|
||||
python-subunit==0.0.15
|
||||
mock==1.0.1
|
||||
coverage==3.6
|
@ -0,0 +1 @@
|
||||
__author__ = 'joshgachnang'
|
@ -1,5 +1,8 @@
|
||||
mock
|
||||
httmock
|
||||
coverage
|
||||
nose
|
||||
hacking
|
||||
hacking>=0.8.0,<0.9
|
||||
coverage>=3.6
|
||||
discover
|
||||
mock>=1.0
|
||||
testrepository>=0.0.18
|
||||
testtools>=0.9.34
|
||||
python-subunit>=0.0.18
|
||||
httmock
|
@ -1,18 +1,38 @@
|
||||
[tox]
|
||||
envlist = flake8, unit
|
||||
minversion = 1.6
|
||||
skipsdist = True
|
||||
envlist = py26,py27,pep8
|
||||
|
||||
[testenv]
|
||||
deps =
|
||||
-rrequirements.txt
|
||||
-rtest-requirements.txt
|
||||
usedevelop = True
|
||||
install_command = pip install --allow-external -U {opts} {packages}
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands =
|
||||
python setup.py testr --slowest --testr-args='{posargs:}'
|
||||
|
||||
[testenv:flake8]
|
||||
commands = flake8 teeth_agent
|
||||
[tox:jenkins]
|
||||
downloadcache = ~/cache/pip
|
||||
|
||||
[testenv:unit]
|
||||
[testenv:pep8]
|
||||
commands =
|
||||
nosetests --all-modules --with-coverage --cover-package=teeth_agent --cover-xml teeth_agent
|
||||
flake8 {posargs:teeth_agent}
|
||||
|
||||
[testenv:devenv]
|
||||
envdir = devenv
|
||||
usedevelop = True
|
||||
[testenv:cover]
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
commands =
|
||||
python setup.py testr --coverage {posargs:teeth_agent}
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs:}
|
||||
|
||||
[flake8]
|
||||
# E711: ignored because it is normal to use "column == None" in sqlalchemy
|
||||
|
||||
ignore = E12,E711
|
||||
builtins = _
|
||||
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,*ironic/nova*,tools
|
||||
|
||||
[hacking]
|
||||
import_exceptions = ironic.openstack.common.gettextutils._,testtools.matchers
|
||||
|
Loading…
Reference in New Issue