-
-
Notifications
You must be signed in to change notification settings - Fork 196
/
tox-integration.ini
57 lines (51 loc) · 2.14 KB
/
tox-integration.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
[tox]
envlist = py3-{generic,cookies,mqtt,grpc,advanced,components,noextra,hooks}
skip_missing_interpreters = true
isolated_build = True
[testenv]
allowlist_externals =
docker
basepython = python3.9
passenv = DOCKER_TLS_VERIFY,DOCKER_HOST,DOCKER_CERT_PATH,DOCKER_BUILDKIT
setenv =
TEST_HOST = http://localhost:5003
SECOND_URL_PART = again
PYTHONPATH = .
changedir =
grpc: example/grpc
mqtt: example/mqtt
cookies: example/cookies
advanced: example/advanced
components: example/components
hooks: example/hooks
generic: tests/integration
noextra: tests/integration
deps =
flask
allure-pytest
pyjwt
pytest-xdist
pytest-cov
colorlog
mqtt: fluent-logger
extras =
grpc: grpc
commands =
; docker compose stop
; docker compose build
docker compose up --build -d
python -m pytest --collect-only
python -m pytest --tavern-global-cfg={toxinidir}/tests/integration/global_cfg.yaml --cov tavern {posargs} --tavern-setup-init-logging
generic: py.test --tavern-global-cfg={toxinidir}/tests/integration/global_cfg.yaml -n 3
generic: tavern-ci --stdout . --tavern-global-cfg={toxinidir}/tests/integration/global_cfg.yaml
generic: python -c "from tavern.core import run; exit(run('.', '{toxinidir}/tests/integration/global_cfg.yaml', pytest_args=[ ]))"
generic: python -c "from tavern.core import run; exit(run('.', pytest_args=['--tavern-global-cfg={toxinidir}/tests/integration/global_cfg.yaml']))"
cookies: tavern-ci --stdout test_server.tavern.yaml
cookies: python -c "from tavern.core import run; exit(run('test_server.tavern.yaml', pytest_args=[ ]))"
advanced: tavern-ci --stdout test_server.tavern.yaml
advanced: python -c "from tavern.core import run; exit(run('test_server.tavern.yaml', pytest_args=[ ]))"
components: tavern-ci --stdout test_ping.tavern.yaml
components: tavern-ci --stdout test_hello.tavern.yaml
components: python -c "from tavern.core import run; exit(run('test_ping.tavern.yaml', pytest_args=[ ]))"
components: python -c "from tavern.core import run; exit(run('test_hello.tavern.yaml', pytest_args=[ ]))"
docker compose stop