From 12e5007b1d57fef9d7e10aa5c252885dc3d2b806 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Sat, 12 Dec 2015 17:52:18 +0000 Subject: [PATCH] tox.ini: configure tox test environment; set up py.test to discover both doctest and unittest tests --- tox.ini | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tox.ini diff --git a/tox.ini b/tox.ini new file mode 100644 index 000000000..e048fc8f2 --- /dev/null +++ b/tox.ini @@ -0,0 +1,21 @@ +[tox] +envlist = py27, pypy, py33, py34, py35 + +[testenv] +deps = + pytest + -rrequirements.txt +commands = + py.test Lib/fontTools + +[pytest] +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