The glob pattern determines which classes are considered for test collection by pytest. We already follow this pattern for the unittest.TestCase derived subclasses (which are collected regardless of this option).
29 lines
577 B
INI
29 lines
577 B
INI
[tox]
|
|
envlist = py27, pypy, py33, py34, py35
|
|
|
|
[testenv]
|
|
deps =
|
|
pytest
|
|
-rrequirements.txt
|
|
commands =
|
|
py.test
|
|
|
|
[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
|