-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtox.ini
56 lines (50 loc) · 1.35 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
[tox]
# exclude "system_tests" by default: these need service credentials
envlist = py38, py39, py310
[testenv]
whitelist_externals = mkdir
# Enable parallel execution
setenv = COVERAGE_FILE = test_results/{envname}/unit_coverage/.coverage
passenv = DAR_* TRAVIS TRAVIS_* COVERALLS_*
deps =
zipp<3.7.0 # for python 3.6 support
pytest==7.0.1 # for python 3.6 support
pytest-cov==2.12.1
httpretty==1.1.4
cov: coveralls==3.1.0
coverage==5.2.1
system_tests: pytest-html==3.1.1
commands =
mkdir -p test_results/{envname}/
pytest \
--doctest-modules \
--cov=sap \
--cov-fail-under=96 \
--cov-report= \
--cov-branch \
--junitxml=test_results/{envname}/unit_xunit.xml \
--junit-prefix={envname} \
-o junit_suite_name={envname} \
-o console_output_style=classic \
-o junit_family=xunit2 \
-vv \
tests/ \
sap/
cov: coveralls
[testenv:system_tests]
commands =
mkdir -p system_test_results/
pytest \
-o log-cli=true \
--log-cli-level INFO \
--junitxml=system_test_results/unit_xunit.xml \
--junit-prefix={envname} \
--html=system_test_results/traceability.html \
--self-contained-html \
-o junit_suite_name={envname} \
-o console_output_style=classic \
-o junit_family=xunit2 \
system_tests
[doc8]
# align line length with black
max-line-length=88