forked from eiffel-community/etos-test-runner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
37 lines (32 loc) · 979 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
28
29
30
31
32
33
34
35
36
37
# 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 = py3,black,pylint,pydocstyle
[testenv]
deps =
-r{toxinidir}/test-requirements.txt
setenv = TEST_ARTIFACT_PATH={toxworkdir}/artifact
TEST_LOCAL_PATH={toxworkdir}/local
GLOBAL_ARTIFACT_PATH={toxworkdir}/global
ETOS_ENABLE_SENDING_LOGS=false
DISABLE_EVENT_PUBLISHING=true
commands =
pytest -s --log-cli-level="DEBUG" --log-format="%(levelname)s: %(message)s" {posargs}
[testenv:black]
deps =
black
commands =
black --check --diff -l 100 .
[testenv:pylint]
deps =
pylint
-r{toxinidir}/test-requirements.txt
commands =
pylint --rcfile={toxinidir}/pylintrc src/etos_test_runner tests
[testenv:pydocstyle]
deps =
pydocstyle
commands =
pydocstyle .