move pytest default config to setup.cfg so it's available for python setup.py test as well as tox

This commit is contained in:
Cosimo Lupo 2016-09-27 13:21:47 +01:00
parent c6de6c4a5f
commit 1422170d22
2 changed files with 22 additions and 19 deletions

View File

@ -3,3 +3,25 @@ universal = 1
[sdist] [sdist]
formats = zip formats = zip
[aliases]
test = pytest
[tool:pytest]
minversion = 2.8
testpaths =
Lib/fontTools
python_files =
*_test.py
python_classes =
*Test
addopts =
# run py.test in verbose mode
-v
# show extra test summary info
-r a
# run doctests in all .py modules
--doctest-modules
# py.test raises ImportError with inspect.py (requires pygtk) and with
# reportLabPen.py (reportlab). They don't have doctests, it's OK to skip.
--doctest-ignore-import-errors

19
tox.ini
View File

@ -32,22 +32,3 @@ commands=
# measure test coverage and upload report to coveralls # measure test coverage and upload report to coveralls
py.test --cov py.test --cov
coveralls coveralls
[pytest]
minversion = 2.8
testpaths =
Lib/fontTools
python_files =
*_test.py
python_classes =
*Test
addopts =
# run py.test in verbose mode
-v
# show extra test summary info
-r a
# run doctests in all .py modules
--doctest-modules
# py.test raises ImportError with inspect.py (requires pygtk) and with
# reportLabPen.py (reportlab). They don't have doctests, it's OK to skip.
--doctest-ignore-import-errors