-
-
Notifications
You must be signed in to change notification settings - Fork 201
Expand file tree
/
Copy pathtox-integration.ini
More file actions
55 lines (51 loc) · 1.94 KB
/
Copy pathtox-integration.ini
File metadata and controls
55 lines (51 loc) · 1.94 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
[tox]
envlist = py3-{generic,mqtt,grpc,http,graphql,noextra,allure}
[testenv]
dependency_groups =
dev
allowlist_externals =
docker
passenv = DOCKER_TLS_VERIFY,DOCKER_HOST,DOCKER_CERT_PATH,DOCKER_BUILDKIT
setenv =
TEST_HOST = http://localhost:5003
SECOND_URL_PART = again
PYTHONPATH = .
COMPOSE_PROJECT_NAME = tavern-{envname}
changedir =
grpc: example/grpc
mqtt: example/mqtt
http: example/http
graphql: example/graphql
allure: example/allure
generic: tests/integration
noextra: tests/integration
deps =
flask
allure-pytest
pyjwt
pytest-xdist
pytest-cov
colorlog
mqtt: fluent-logger
extras =
mqtt: mqtt
grpc: grpc
; regression test for https://github.com/taverntesting/tavern/issues/1016
http: mqtt
graphql: graphql
commands =
; docker compose stop
; docker compose build
docker compose up --build -d
python -m pytest --collect-only
!allure: python -m pytest --tavern-global-cfg={toxinidir}/tests/integration/global_cfg.yaml --cov tavern {posargs} --tavern-setup-init-logging
; Generate a report to check that eg parametrized tests show up separately in it
allure: python -c "import shutil; shutil.rmtree('allure-results', ignore_errors=True)"
allure: python -m pytest --alluredir=allure-results {posargs}
allure: docker compose run --rm allure generate /allure-results --clean --single-file -o /allure-report
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']))"
commands_post =
docker compose down -v --remove-orphans