add in testing framework

This commit is contained in:
Joshua Hesketh 2013-07-29 11:51:20 +10:00
parent 4fd585fc72
commit a6e26f5d86
6 changed files with 35 additions and 0 deletions

8
.testr.conf Normal file
View File

@ -0,0 +1,8 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover -t ./ ./turbo_hipster/tests $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

5
test-requirements.txt Normal file
View File

@ -0,0 +1,5 @@
# Install bounded pep8/pyflakes first, then let flake8 install
pep8==1.4.5
pyflakes==0.7.2
flake8==2.0
hacking>=0.5.3,<0.6

18
tox.ini Normal file
View File

@ -0,0 +1,18 @@
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py26, py27, py33
[testenv]
sitepackages = True
setenv = VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
deps = -U
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = {envpython} setup.py test

View File

View File

View File

@ -0,0 +1,4 @@
import testtools
class WorkerServerTestCase(testtools.TestCase):
pass