forked from riccardomc/storyscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
39 lines (31 loc) · 731 Bytes
/
tox.ini
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 = py36,pep8
[testenv]
deps =
pytest
pytest-cov
pytest-mock
pytest-parallel
whitelist_externals=/usr/bin/mv
[testenv:unit]
commands =
pytest tests/unittests --cov=. --cov-config=.coveragerc --cov-report=term-missing {posargs}
coverage xml
mv coverage.xml unittest.xml
[testenv:integration]
commands =
coverage run --source . -m py.test tests/integration
coverage run --append --source . -m py.test tests/e2e
coverage report
coverage xml
mv coverage.xml integration.xml
[testenv:pep8]
deps =
flake8
flake8-quotes
flake8-import-order
pep8-naming
commands =
flake8 \
--max-complexity=15 \
--exclude=./build,venv,.venv,.tox,dist,docs