forked from yaojiach/red-panda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
45 lines (39 loc) · 898 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
40
41
42
43
44
45
; [pytest]
; addopts = -p no:warnings
[tox]
envlist = clean,unit,report
[tool:pytest]
addopts =
--cov-report=term-missing
--cov-report=html:coverage.html
--cov-report=xml:coverage.xml
[testenv:unit]
setenv =
PYTHONPATH = {toxinidir}
basepython = python3.8
deps =
pytest
pytest-cov
moto
pytest-mock
commands = pytest -o log_cli=true --log-cli-level=INFO --cov={toxinidir}/red_panda --cov-append tests/unit {posargs}
[testenv:integ]
setenv =
PYTHONPATH = {toxinidir}
basepython = python3.8
deps =
pytest
pytest-cov
python-dotenv
commands = pytest -o log_cli=true --log-cli-level=INFO --cov={toxinidir}/red_panda --cov-append tests/integ {posargs}
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
coverage html
coverage xml
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase