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] | ||||
Alex Shatov | 8cdeeeb | 2017-09-26 17:03:11 -0400 | [diff] [blame] | 3 | envlist = py27 |
Lusheng Ji | 88648fc | 2017-09-20 02:18:20 +0000 | [diff] [blame] | 4 | |
5 | [testenv] | ||||
6 | deps= | ||||
7 | -rrequirements.txt | ||||
Alex Shatov | 8cdeeeb | 2017-09-26 17:03:11 -0400 | [diff] [blame] | 8 | cloudify-plugins-common==3.4 |
Lusheng Ji | 88648fc | 2017-09-20 02:18:20 +0000 | [diff] [blame] | 9 | pytest |
10 | coverage | ||||
11 | pytest-cov | ||||
Alex Shatov | 8cdeeeb | 2017-09-26 17:03:11 -0400 | [diff] [blame] | 12 | setenv = |
13 | PYTHONPATH={toxinidir} | ||||
Andrew Gauld | f00bb6e | 2018-07-10 11:22:04 -0400 | [diff] [blame^] | 14 | whitelist_externals= |
15 | rm | ||||
16 | mkdir | ||||
Andrew Gauld | 373f0f3 | 2018-02-21 11:14:46 -0500 | [diff] [blame] | 17 | commands= |
Andrew Gauld | f00bb6e | 2018-07-10 11:22:04 -0400 | [diff] [blame^] | 18 | rm -rf {toxinidir}/logs |
19 | mkdir {toxinidir}/logs | ||||
Andrew Gauld | 44f0f8f | 2018-02-21 12:43:06 -0500 | [diff] [blame] | 20 | pytest --junitxml xunit-results.xml --cov onap_dcae_dcaepolicy_lib --cov-report xml |
Andrew Gauld | 373f0f3 | 2018-02-21 11:14:46 -0500 | [diff] [blame] | 21 | coverage xml |