diff --git a/.testr.conf b/.testr.conf new file mode 100644 index 0000000..801646b --- /dev/null +++ b/.testr.conf @@ -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 ./ ./unit_tests $LISTOPT $IDOPTION + +test_id_option=--load-list $IDFILE +test_list_option=--list diff --git a/tox.ini b/tox.ini index 00c1bba..54de270 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,7 @@ [tox] skipsdist = True -envlist = pep8 +envlist = pep8,py34,py35 +skip_missing_interpreters = True [testenv] basepython = python2.7 @@ -25,3 +26,18 @@ commands = {posargs} [testenv:pep8] commands = flake8 {posargs} src/reactive src/lib + +[testenv:py27] +basepython = python2.7 +deps = -r{toxinidir}/test-requirements.txt +commands = ostestr {posargs} + +[testenv:py34] +basepython = python3.4 +deps = -r{toxinidir}/test-requirements.txt +commands = ostestr {posargs} + +[testenv:py35] +basepython = python3.5 +deps = -r{toxinidir}/test-requirements.txt +commands = ostestr {posargs}