diff --git a/.travis.yml b/.travis.yml index 36745835..87d3afb0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,4 +9,4 @@ install: - "pip install --use-mirrors Cython" - "pip install -e ." # command to run tests -script: fakeroot -u python -m borg.testsuite.run -vb +script: fakeroot -u py.test diff --git a/docs/installation.rst b/docs/installation.rst index ec47fe3a..58073a7a 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -69,7 +69,7 @@ Some of the steps detailled below might be useful also for non-git installs. # install some dependencies into virtual env pip install cython # to compile .pyx -> .c - pip install tox # optional, for running unit tests + pip install tox pytest # optional, for running unit tests pip install sphinx # optional, to build the docs # get |project_name| from github, install it diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..c9f4a34c --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[pytest] +python_files = testsuite/*.py diff --git a/tox.ini b/tox.ini index 46e4c01d..619fc01f 100644 --- a/tox.ini +++ b/tox.ini @@ -3,9 +3,13 @@ envlist = py32, py33, py34 [testenv] # Change dir to avoid import problem -changedir = docs -commands = {envpython} -m borg.testsuite.run -bv [] +changedir = {envdir} +deps = + pytest +commands = py.test passenv = * # fakeroot -u needs some env vars [testenv:py32] -deps = mock +deps = + pytest + mock