blob: a934567d0c26daf3044199af93ea765f02015a95 [file] [log] [blame]
Mahesh Jethanandanib5baae42021-12-08 21:04:46 -08001[tox]
2minversion = 2.0
santanude8c696452022-05-26 13:45:55 +05303envlist = code,flake8,docs,docs-linkcheck
Mahesh Jethanandanib5baae42021-12-08 21:04:46 -08004skipsdist = true
5
6[testenv:docs]
7basepython = python3
8deps =
9 sphinx
10 sphinx-rtd-theme
11 sphinxcontrib-httpdomain
12 recommonmark
13 lfdocs-conf
14
15commands =
16 sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
17 echo "Generated docs available in {toxinidir}/docs/_build/html"
18whitelist_externals = echo
19
20[testenv:docs-linkcheck]
21basepython = python3
22deps = sphinx
23 sphinx-rtd-theme
24 sphinxcontrib-httpdomain
25 recommonmark
26 lfdocs-conf
27commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
Mahesh Jethanandania2481ab2021-12-21 13:38:50 -080028
santanude56d41972022-06-15 12:08:28 +053029[testenv:clm]
30# use pip to report dependencies with versions
31whitelist_externals = sh
32commands = sh -c 'pip freeze > requirements.txt'
33
Mahesh Jethanandania2481ab2021-12-21 13:38:50 -080034[testenv:code]
35basepython = python3
36deps=
37 pytest
38 coverage
39 pytest-cov
sahilkolibeee3172022-07-11 10:48:21 +053040 requests
41 jsonschema
42 kafka-python
43 gevent
44 PyYAML
45 pytest-mock
46 flask
47 confluent-kafka
48 future
49 mock
50 requests_mock
Mahesh Jethanandania2481ab2021-12-21 13:38:50 -080051# Add any environment variables to run this code coverage test
52# setenv =
53# Note, before this will work, for the first time on that machine,
54# run ./install_deps.sh
55# sometimes the -s flag is helpful; add -s after pytest;
56# which streams the logs as they come in, rather than saving them
57# all for the end of tests
58commands =
sahilkolibeee3172022-07-11 10:48:21 +053059 pytest --ignore=functionaltest --ignore=collector --cov {toxinidir} --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 --junitxml={toxinidir}/tmp/tests.xml