blob: 23379ee8f5b341d066c482190bff4bf1473bfc19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
[tox]
envlist = py26,
py27,
py34,
pypy
[testenv]
# for any python, run simple pytest
# with pep8 and pyflake checking
deps = pytest
pytest-pep8
pytest-flakes
mock
-rrequirements.txt
whitelist_externals = /bin/bash
setenv = PYTHONIOENCODING=UTF8
# run each test twice -- 1. w/o tty
commands = /bin/bash -c {envbindir}/py.test -v \
-x --strict --pep8 --flakes \
blessed/tests {posargs} \
< /dev/null 2>&1 | tee /dev/null
# 2. w/tty
{envbindir}/py.test -v \
-x --strict --pep8 --flakes \
blessed/tests {posargs}
[testenv:py27]
# for python27, measure coverage
usedevelop = True
deps = pytest
pytest-cov
pytest-pep8
pytest-flakes
mock
-rrequirements.txt
setenv = PYTHONIOENCODING=UTF8
# run each test twice -- 1. w/o tty,
commands = /bin/bash -c {envbindir}/py.test -v \
-x --strict --pep8 --flakes \
blessed/tests {posargs} \
< /dev/null 2>&1 | tee /dev/null
# 2. w/tty, w/coverage
{envbindir}/py.test -v \
-x --strict --pep8 --flakes \
--cov-report term-missing \
--cov blessed {posargs}
# for python3, test the version of blessed that is *installed*,
# and not from source. This is because we use the 2to3 tool.
#
# some issue with py.test & python 3 does not allow non-tty testing.
[testenv:py34]
changedir = {toxworkdir}
commands = {envbindir}/py.test -x --strict --pep8 --flakes \
{envsitepackagesdir}/blessed/tests {posargs}
[pytest]
# py.test fixtures conflict with pyflakes
flakes-ignore =
UnusedImport
RedefinedWhileUnused
|