-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
83 lines (69 loc) · 1.68 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[tox]
# skipping the setup.py installation/requirement for the moment
skipsdist = true
envlist =
py310
[testenv]
description = Running tests in the corresponding environment
passenv = *
deps =
-rrequirements.txt
-rrequirements.dev.txt
commands =
{envpython} -m pytest --cov-config=tox.ini
[testenv:unit]
description = Running UNIT tests in the corresponding environment
commands =
{envpython} -m pytest tests/unit/{posargs}
[testenv:e2e]
commands =
{envpython} -m pytest tests/e2e/{posargs}
[testenv:features]
commands =
{envpython} -m pytest --alluredir=./tests/reports/allure/test_results/ ./tests/features/
allure generate --allow-file-access-from-files ./tests/reports/allure/test_results/ --clean -o ./tests/reports/allure/report/
allure-combine ./tests/reports/allure/report/ --remove-temp-files
[testenv:cover]
basepython =
python3.10
commands =
{envpython} -m pytest \
--cov-report term \
--cov-report html \
--cov
[coverage:run]
relative_files = True
source = mapping_workbench/
branch = False
[pytest]
log_cli = true
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)
log_cli_date_format = %Y-%m-%d %H:%M:%S
addopts =
--cov=mapping_workbench
--cov-report=html
--cov-report=term
--cov-report=xml
--junitxml=junit_report.xml
-r a
-q
-v -s
--gherkin-terminal-reporter
--disable-pytest-warnings
--disable-warnings
junit_family=xunit2
testpaths =
tests
[testenv:linter]
deps =
flake8
flake8-bugbear
flake8-builtins
flake8-comprehensions
flake8-string-format
black
pydocstyle
commands =
flake8
black --check .
pydocstyle