-
-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathtox.ini
39 lines (36 loc) · 1.08 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
# ============================================================================
# TOX CONFIGURATION: gherkin-python
# ============================================================================
# REQUIRES: pip install tox
# DESCRIPTION:
# Use tox to run tasks (tests, ...) in a clean virtual environment.
# For example, use an installed Python 3.9, like:
#
# tox -e py39
#
# SEE ALSO:
# * https://tox.wiki/en/latest/config.html
# ============================================================================
[tox]
envlist = py313, py312, py311, py310, py39
# -----------------------------------------------------------------------------
# TEST ENVIRONMENTS:
# -----------------------------------------------------------------------------
[testenv]
commands=
pytest {posargs}
deps= -r {toxinidir}/requirements.txt
setenv =
PYTHONPATH = {toxinidir}
# -- USE: tox -e coverage
[testenv:coverage]
commands=
coverage run -m pytest {posargs}
coverage combine
coverage report
coverage html
deps=
coverage >= 4.2
{[testenv]deps}
setenv =
PYTHONPATH = {toxinidir}