forked from looker-open-source/sdk-codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
27 lines (23 loc) · 804 Bytes
/
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
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = {py36,py37,py38,py39}-{unit,integration}
[testenv]
# otherwise tox won't let the code read LOOKERSDK env vars
passenv = LOOKERSDK*
deps =
pytest
pytest-cov
pytest-mock
pyyaml
[testenv:unit]
commands =
pytest --junitxml={env:TOX_JUNIT_OUTPUT_DIR:../results/}/{env:TOX_JUNIT_OUTPUT_NAME:python}-{envname}.xml tests/rtl/
[testenv:integration]
deps =
pillow
{[testenv]deps}
commands =
pytest --junitxml={env:TOX_JUNIT_OUTPUT_DIR:../results/}/{env:TOX_JUNIT_OUTPUT_NAME:python}-{envname}.xml tests/integration/