the glob pattern will restricts the search only for pytest's kind of tests; it has no effect on methods of unittest.TestCase derived class, since pytest still uses unittest's own collection framework to collect those. The 'minversion' is required to support some of the latest advanced features. The current py.test is 2.8.7. You can update it with `pip install --upgrade pytest`.
27 lines
549 B
INI
27 lines
549 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
|
|
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
|