mirror of https://github.com/borgbackup/borg.git
use py.test for testing, document it
locally (via tox) and also on travis ci.
This commit is contained in:
parent
b5b1af2195
commit
906ea629f6
|
@ -9,4 +9,4 @@ install:
|
||||||
- "pip install --use-mirrors Cython"
|
- "pip install --use-mirrors Cython"
|
||||||
- "pip install -e ."
|
- "pip install -e ."
|
||||||
# command to run tests
|
# command to run tests
|
||||||
script: fakeroot -u python -m borg.testsuite.run -vb
|
script: fakeroot -u py.test
|
||||||
|
|
|
@ -69,7 +69,7 @@ Some of the steps detailled below might be useful also for non-git installs.
|
||||||
|
|
||||||
# install some dependencies into virtual env
|
# install some dependencies into virtual env
|
||||||
pip install cython # to compile .pyx -> .c
|
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
|
pip install sphinx # optional, to build the docs
|
||||||
|
|
||||||
# get |project_name| from github, install it
|
# get |project_name| from github, install it
|
||||||
|
|
10
tox.ini
10
tox.ini
|
@ -3,9 +3,13 @@ envlist = py32, py33, py34
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
# Change dir to avoid import problem
|
# Change dir to avoid import problem
|
||||||
changedir = docs
|
changedir = {envdir}
|
||||||
commands = {envpython} -m borg.testsuite.run -bv []
|
deps =
|
||||||
|
pytest
|
||||||
|
commands = py.test
|
||||||
passenv = * # fakeroot -u needs some env vars
|
passenv = * # fakeroot -u needs some env vars
|
||||||
|
|
||||||
[testenv:py32]
|
[testenv:py32]
|
||||||
deps = mock
|
deps =
|
||||||
|
pytest
|
||||||
|
mock
|
||||||
|
|
Loading…
Reference in New Issue