diff options
author | Alex Shatov <alexs@att.com> | 2017-09-26 16:58:37 -0400 |
---|---|---|
committer | Alex Shatov <alexs@att.com> | 2017-09-26 16:58:37 -0400 |
commit | 527c5898823398d3f8bd1306e4902214bfd3dbe7 (patch) | |
tree | b90cb894abee3b90bef5b6498beb361ba7347d08 /dcae-policy/tox.ini | |
parent | d38e228959de388f0ed6d1876e8392e18f17006a (diff) |
UT 78% dcaepolicy plugin
* unit test withcoverage of 78 %
* minor refactoring for lazy init for discovery - useful for UT
Change-Id: I7bee1d5dc5c66477c6e8f19484b0179d5f726fe0
Issue-Id: DCAEGEN2-62
Signed-off-by: Alex Shatov <alexs@att.com>
Diffstat (limited to 'dcae-policy/tox.ini')
-rw-r--r-- | dcae-policy/tox.ini | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dcae-policy/tox.ini b/dcae-policy/tox.ini new file mode 100644 index 0000000..b78ba54 --- /dev/null +++ b/dcae-policy/tox.ini @@ -0,0 +1,15 @@ +# content of: tox.ini , put in same dir as setup.py +[tox] +envlist = py27 + +[testenv] +deps= + -rrequirements.txt + cloudify-plugins-common==3.4 + pytest + coverage + pytest-cov +setenv = + PYTHONPATH={toxinidir} +# recreate = True +commands=pytest --junitxml xunit-reports/xunit-result-dcaepolicyplugin.xml --cov dcaepolicyplugin --cov-report=xml |