-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathtox.ini
35 lines (32 loc) · 793 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
[tox]
envlist =
coverage
py3
isolated_build = true
[testenv]
description = Run the tests with pytest under {basepython}.
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage.{envname}
commands =
pytest \
--cov="{envsitepackagesdir}/flake8_requirements" \
--cov-config="{toxinidir}/tox.ini" \
test
deps =
pytest
pytest-cov
[testenv:coverage]
description = Combine coverage data and create final XML report.
setenv =
COVERAGE_FILE = {toxworkdir}/.coverage
commands =
coverage combine
coverage report
coverage xml -o "{toxworkdir}/coverage.xml"
skip_install = true
deps = coverage
depends = py3
[coverage:paths]
source = src/flake8_requirements
*/.tox/*/lib/python*/site-packages/flake8_requirements
*/src/flake8_requirements