blob: ff8b2b681b0576995c6aa99970db6f5c3724b83a (
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
|
[tox]
envlist = static_analysis,
py26,
py27,
py33,
py34,
pypy
skip_missing_interpreters = true
[testenv]
whitelist_externals = /bin/bash /bin/mv
setenv = PYTHONIOENCODING=UTF8
deps = pytest-flakes
pytest-xdist
pytest-pep8
pytest-cov
pytest
mock
commands = {envbindir}/py.test \
--strict --pep8 --flakes \
--junit-xml=results.{envname}.xml --verbose \
--cov blessings blessings/tests --cov-report=term-missing \
{posargs}
/bin/mv {toxinidir}/.coverage {toxinidir}/.coverage.{envname}
[testenv:static_analysis]
deps = prospector[with_everything]
commands = prospector \
--die-on-tool-error \
--test-warnings \
--doc-warnings \
{toxinidir}
[pytest]
# py.test fixtures conflict with pyflakes
flakes-ignore =
UnusedImport
RedefinedWhileUnused
|