blob: 5f6d8f81098e90f891b3491ede320c90af44fdf1 [file] [log] [blame]
Lusheng Ji88648fc2017-09-20 02:18:20 +00001# content of: tox.ini , put in same dir as setup.py
2[tox]
Hansen, Tony (th1395)876d17b2021-06-22 21:12:32 +00003# envlist = py36, flake8, py38, py39
4envlist = flake8, py38, py39
Lusheng Ji88648fc2017-09-20 02:18:20 +00005
6[testenv]
7deps=
Lusheng Ji88648fc2017-09-20 02:18:20 +00008 pytest
9 coverage
10 pytest-cov
Hansen, Tony (th1395)876d17b2021-06-22 21:12:32 +000011 pyyaml
12
Tommy Carpenter7b310082017-09-25 11:45:12 -040013setenv =
Tommy Carpenter1474cbb2019-06-24 15:52:59 +000014 HOSTNAME = testhostname
15 CONFIG_BINDING_SERVICE = config-binding-service
Andrew Gauld373f0f32018-02-21 11:14:46 -050016 PYTHONPATH={toxinidir}
Edyta Krukowska1002e422021-05-12 12:00:07 +020017 TEST_ENV=test_env
Tommy Carpenter7b310082017-09-25 11:45:12 -040018
Andrew Gauld373f0f32018-02-21 11:14:46 -050019commands=
Hansen, Tony (th1395)876d17b2021-06-22 21:12:32 +000020 pytest --junitxml xunit-results.xml --cov onap_dcae_cbs_docker_client --cov-report xml --cov-report=term --cov-report=html
Andrew Gauld373f0f32018-02-21 11:14:46 -050021 coverage xml
Tommy Carpenter426fd9d2018-03-12 11:29:33 -040022
23[testenv:flake8]
Edyta Krukowska1002e422021-05-12 12:00:07 +020024basepython = python3.8
Tommy Carpenter426fd9d2018-03-12 11:29:33 -040025skip_install = true
26deps = flake8
27commands = flake8 setup.py onap_dcae_cbs_docker_client tests
28
29[flake8]
30ignore = E501