diff --git a/setup.cfg b/setup.cfg index ca1cfafa5..a096b0b1b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,3 +3,25 @@ universal = 1 [sdist] 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 diff --git a/tox.ini b/tox.ini index ec13335a3..65355b259 100644 --- a/tox.ini +++ b/tox.ini @@ -32,22 +32,3 @@ commands= # measure test coverage and upload report to coveralls py.test --cov 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