forked from OP-TED/ted-rdf-conversion-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
93 lines (77 loc) · 1.96 KB
/
tox.ini
File metadata and controls
93 lines (77 loc) · 1.96 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[tox]
# skipping the setup.py installation/requirement for the moment
skipsdist = true
envlist = py310
#py37,py38,py39,py310 # skipping multiple python distros for the moment
[testenv]
description = Running tests in the corresponding environment
#basepython = /usr/bin/python3.10
passenv = *
commands_pre =
python -m pip install --upgrade pip setuptools wheel
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 test/unit
[testenv:features]
commands =
- {envpython} -m pytest --alluredir=./test/reports/allure/test_results/ ./test/features/
npx -p allure-commandline allure generate ./test/reports/allure/test_results/ -o ./test/reports/allure/report/ --clean
allure-combine ./test/reports/allure/report/ --dest ./test/reports/allure/combined_report --remove-temp-files --auto-create-folders
allowlist_externals =
npx
allure-combine
[testenv:e2e]
commands =
{envpython} -m pytest test/e2e
[testenv:cover]
basepython = /usr/bin/python3.10
commands =
{envpython} -m pytest \
--cov-report term \
--cov-report html \
--cov
[coverage:run]
relative_files = True
source =
src/ted_sws/
src/dags/
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=src/ted_sws
--cov=src/dags
--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 =
test
[testenv:linter]
deps =
flake8
flake8-bugbear
flake8-builtins
flake8-comprehensions
flake8-string-format
black
pydocstyle
commands =
flake8
black --check .
pydocstyle