-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
72 lines (64 loc) · 1.48 KB
/
Copy pathtox.ini
File metadata and controls
72 lines (64 loc) · 1.48 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# For the PyTest configuration, I've followed this example
# https://github.com/pytest-dev/pytest-cov/tree/master/examples/src-layout
[tox]
minversion = 3.20.0
skipsdist = true
isolated_build = true
skip_missing_interpreters = true
envlist =
clean
py312
py311
py310
py39
py38
py37
pypy3
pypy
report
[testenv]
setenv =
COVERAGE_FILE = .coverage.{envname}
PYTHONDONTWRITEBYTECODE = 1
allowlist_externals = poetry
#download = True
commands =
poetry install -v --sync --only=main,test
poetry run pytest \
--cov=cppcheck_codequality \
--cov=tests \
--cov-report=term-missing \
--cov-branch \
-c pytest.ini \
--log-file=./pytest_out_{envname}.log \
--junit-xml=./pytest_out_{envname}.xml.junit
depends =
{py37, py38, py39, py310, py311, py312, pypy, pypy3}: clean
report: py37, py38, py39, py310, py311, py312, pypy, pypy3
[testenv:report]
skip_install = true
deps = coverage
setenv =
COVERAGE_FILE = .coverage
require_locked_deps = true
poetry_dep_groups =
main
test
commands =
poetry install -v --sync --only=main,test
coverage combine
coverage xml
coverage html
coverage report --fail-under=80
depends = py37, py38, py39, py310, py311, py312, pypy, pypy3
[coverage:run]
branch = true
parallel = false
[coverage:report]
show_missing = true
precision = 2
[testenv:clean]
skip_install = true
commands =
poetry install -v --sync --only=test
coverage erase