-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
39 lines (35 loc) · 879 Bytes
/
tox.ini
File metadata and controls
39 lines (35 loc) · 879 Bytes
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
# SPDX-FileCopyrightText: 2025 BlueZoo developers
# SPDX-License-Identifier: GPL-2.0-only
[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}/bluezoo" \
--cov-config="{toxinidir}/tox.ini" \
tests
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 lcov -o "{toxworkdir}/coverage.lcov"
coverage xml -o "{toxworkdir}/coverage.xml"
skip_install = true
deps = coverage
depends = py3
[coverage:paths]
source = bluezoo
*/.tox/*/lib/python*/site-packages/bluezoo
*/bluezoo