From 68f4a745f25d278f7b06c714dd638dfd4957b3f5 Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Thu, 12 Apr 2018 09:26:03 -0700 Subject: [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 --- pom.xml | 7 +++++++ tox.ini | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6bc90e8..9db7114 100644 --- a/pom.xml +++ b/pom.xml @@ -25,6 +25,13 @@ ${project.version}-latest nexus3.onap.org:10001 nexus3.onap.org:10003 + + UTF-8 + . + coverage.xml + py + python + imagescanner/imagescanner/**.py 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 -- cgit 1.2.3-korg