summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstark, steven <ss820f@att.com>2018-04-12 09:26:03 -0700
committerstark, steven <ss820f@att.com>2018-04-12 09:26:57 -0700
commit68f4a745f25d278f7b06c714dd638dfd4957b3f5 (patch)
tree435e95804ce3305a0b340f2b5ef8677792e8671a
parent7104d520c034d108097ab5cb2a70247267dbf8f8 (diff)
[VVP] adding pytest/sonar to image-scanner
modified tox.ini to create coverage report modified pom to include sonar properties Change-Id: If7df67e34bee2561dbb1c1c427031e4919453e09 Issue-ID: VVP-55 Signed-off-by: stark, steven <ss820f@att.com>
-rw-r--r--pom.xml7
-rw-r--r--tox.ini3
2 files changed, 9 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index 6bc90e8..9db7114 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,6 +25,13 @@
<docker.latest.tag>${project.version}-latest</docker.latest.tag>
<docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
<docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
+ <!--sonar-->
+ <sonar.sourceEncoding>UTF-8</sonar.sourceEncoding>
+ <sonar.sources>.</sonar.sources>
+ <sonar.python.coverage.reportPath>coverage.xml</sonar.python.coverage.reportPath>
+ <sonar.language>py</sonar.language>
+ <sonar.pluginName>python</sonar.pluginName>
+ <sonar.inclusions>imagescanner/imagescanner/**.py</sonar.inclusions>
</properties>
<build>
diff --git a/tox.ini b/tox.ini
index b976be2..b4f3ee5 100644
--- a/tox.ini
+++ b/tox.ini
@@ -9,7 +9,8 @@ distribute = False
commands =
{envpython} --version
pytest --version
- pytest --cov=imagescanner
+ coverage run --module pytest imagescanner
+ coverage xml
deps =
flake8
pytest-cov