Mahesh Jethanandani | b5baae4 | 2021-12-08 21:04:46 -0800 | [diff] [blame] | 1 | [tox] |
| 2 | minversion = 2.0 |
santanude | 8c69645 | 2022-05-26 13:45:55 +0530 | [diff] [blame] | 3 | envlist = code,flake8,docs,docs-linkcheck |
Mahesh Jethanandani | b5baae4 | 2021-12-08 21:04:46 -0800 | [diff] [blame] | 4 | skipsdist = true |
| 5 | |
| 6 | [testenv:docs] |
| 7 | basepython = python3 |
| 8 | deps = |
| 9 | sphinx |
| 10 | sphinx-rtd-theme |
| 11 | sphinxcontrib-httpdomain |
| 12 | recommonmark |
| 13 | lfdocs-conf |
| 14 | |
| 15 | commands = |
| 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" |
| 18 | whitelist_externals = echo |
| 19 | |
| 20 | [testenv:docs-linkcheck] |
| 21 | basepython = python3 |
| 22 | deps = sphinx |
| 23 | sphinx-rtd-theme |
| 24 | sphinxcontrib-httpdomain |
| 25 | recommonmark |
| 26 | lfdocs-conf |
| 27 | commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck |
Mahesh Jethanandani | a2481ab | 2021-12-21 13:38:50 -0800 | [diff] [blame] | 28 | |
santanude | 56d4197 | 2022-06-15 12:08:28 +0530 | [diff] [blame] | 29 | [testenv:clm] |
| 30 | # use pip to report dependencies with versions |
| 31 | whitelist_externals = sh |
| 32 | commands = sh -c 'pip freeze > requirements.txt' |
| 33 | |
Mahesh Jethanandani | a2481ab | 2021-12-21 13:38:50 -0800 | [diff] [blame] | 34 | [testenv:code] |
| 35 | basepython = python3 |
| 36 | deps= |
| 37 | pytest |
| 38 | coverage |
| 39 | pytest-cov |
sahilkoli | beee317 | 2022-07-11 10:48:21 +0530 | [diff] [blame] | 40 | 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 Jethanandani | a2481ab | 2021-12-21 13:38:50 -0800 | [diff] [blame] | 51 | # 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 |
| 58 | commands = |
sahilkoli | beee317 | 2022-07-11 10:48:21 +0530 | [diff] [blame] | 59 | 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 |