-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
49 lines (39 loc) · 815 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
46
47
48
49
[tox]
envlist =
clean
py38
py39
py310
py311
py312
coverage_report
isolated_build = True
[coverage:paths]
source =
.
.tox/*/site-packages
[testenv:clean]
deps = coverage
skip_install = true
setenv = COVERAGE_FILE=.coverage
changedir = {toxinidir}
commands = coverage erase
[testenv]
# This is necessary to make sure we are importing the installed
# code, not the code from the project directory
changedir = tests
setenv = COVERAGE_FILE={toxinidir}/tests/.coverage.{envname}
deps =
pytest
pytest-raisin
coverage
commands =
coverage run --source introspection --branch -m pytest .
[testenv:coverage_report]
deps = coverage
skip_install = true
setenv = COVERAGE_FILE=.coverage
changedir = {toxinidir}
commands =
coverage combine tests
coverage html