Lusheng Ji | 88648fc | 2017-09-20 02:18:20 +0000 | [diff] [blame] | 1 | # content of: tox.ini , put in same dir as setup.py |
| 2 | [tox] |
Hansen, Tony (th1395) | 876d17b | 2021-06-22 21:12:32 +0000 | [diff] [blame] | 3 | # envlist = py36, flake8, py38, py39 |
| 4 | envlist = flake8, py38, py39 |
Lusheng Ji | 88648fc | 2017-09-20 02:18:20 +0000 | [diff] [blame] | 5 | |
| 6 | [testenv] |
| 7 | deps= |
Lusheng Ji | 88648fc | 2017-09-20 02:18:20 +0000 | [diff] [blame] | 8 | pytest |
| 9 | coverage |
| 10 | pytest-cov |
Hansen, Tony (th1395) | 876d17b | 2021-06-22 21:12:32 +0000 | [diff] [blame] | 11 | pyyaml |
| 12 | |
Tommy Carpenter | 7b31008 | 2017-09-25 11:45:12 -0400 | [diff] [blame] | 13 | setenv = |
Tommy Carpenter | 1474cbb | 2019-06-24 15:52:59 +0000 | [diff] [blame] | 14 | HOSTNAME = testhostname |
| 15 | CONFIG_BINDING_SERVICE = config-binding-service |
Andrew Gauld | 373f0f3 | 2018-02-21 11:14:46 -0500 | [diff] [blame] | 16 | PYTHONPATH={toxinidir} |
Edyta Krukowska | 1002e42 | 2021-05-12 12:00:07 +0200 | [diff] [blame] | 17 | TEST_ENV=test_env |
Tommy Carpenter | 7b31008 | 2017-09-25 11:45:12 -0400 | [diff] [blame] | 18 | |
Andrew Gauld | 373f0f3 | 2018-02-21 11:14:46 -0500 | [diff] [blame] | 19 | commands= |
Hansen, Tony (th1395) | 876d17b | 2021-06-22 21:12:32 +0000 | [diff] [blame] | 20 | pytest --junitxml xunit-results.xml --cov onap_dcae_cbs_docker_client --cov-report xml --cov-report=term --cov-report=html |
Andrew Gauld | 373f0f3 | 2018-02-21 11:14:46 -0500 | [diff] [blame] | 21 | coverage xml |
Tommy Carpenter | 426fd9d | 2018-03-12 11:29:33 -0400 | [diff] [blame] | 22 | |
| 23 | [testenv:flake8] |
Edyta Krukowska | 1002e42 | 2021-05-12 12:00:07 +0200 | [diff] [blame] | 24 | basepython = python3.8 |
Tommy Carpenter | 426fd9d | 2018-03-12 11:29:33 -0400 | [diff] [blame] | 25 | skip_install = true |
| 26 | deps = flake8 |
| 27 | commands = flake8 setup.py onap_dcae_cbs_docker_client tests |
| 28 | |
| 29 | [flake8] |
| 30 | ignore = E501 |