forked from EnterpriseDB/tpa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
32 lines (30 loc) · 833 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
[tox]
envlist = py39-lint, py39-test, dep
skipsdist = True
skip_missing_interpreters = True
[testenv]
setenv =
PYTHONPATH = lib:library
PYTHONDONTWRITEBYTECODE = 1
PIP_INDEX_URL = https://pypi.org/simple
deps =
-rrequirements.txt
-rrequirements/ansible.txt
test: -rrequirements/testing.txt
lint: -rrequirements/lint.txt
dep: -rrequirements/dep.txt
commands =
lint: prospector -DFM
test: pytest -p no:cacheprovider {posargs:./lib/tests ./library/tests} -vv
dep: pipdeptree -w fail
[pytest]
addopts =
--cov-report term:skip-covered
--cov-report html:test-output/coverage
--cov-report xml:coverage-reports/coverage.xml
--cov=lib
--cov=library
--html=test-output/tests.html
-o junit_family=xunit1
--junitxml coverage-reports/results.xml
--cov-report term