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:
parent
c6de6c4a5f
commit
1422170d22
22
setup.cfg
22
setup.cfg
@ -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
19
tox.ini
@ -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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user