-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
50 lines (45 loc) · 1.11 KB
/
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
46
47
48
49
50
[tox]
envlist =
coverage
py{3.7,3.8,3.9,3.10,3.11}
isolated_build = True
[base]
# this is required to force rich to fix the terminal width
setenv =
CI = true
[testenv]
description = Run unit-testing
deps =
poetry==1.3.1
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONUNBUFFERED=1
{[base]setenv}
commands =
poetry install
pytest -vv --cov-branch --cov-report=term-missing --cov=youtrack_python_cli --cov-report=html:{envdir} {posargs}
[testenv:py3.7]
description = Quick sanity test for Python 3.7 (no snapshots, no pytest)
deps =
poetry==1.3.1
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONUNBUFFERED=1
commands =
poetry install
youtrack-cli --help
youtrack-cli --version
[testenv:coverage]
description = Generate coverage
depy =
poetry==1.3.1
basepython = python3.11
setenv =
{[base]setenv}
commands =
poetry install
pytest -vvv --cov-branch --cov=youtrack_python_cli {posargs}
# annoyingly, pytest-cov doesn't produce correct paths in the xml output.
# re-generate the coverage xml with Coverage.py, which does it right.
coverage xml
coverage html