diff options
author | stark, steven <ss820f@att.com> | 2018-04-12 09:26:03 -0700 |
---|---|---|
committer | stark, steven <ss820f@att.com> | 2018-04-12 09:26:57 -0700 |
commit | 68f4a745f25d278f7b06c714dd638dfd4957b3f5 (patch) | |
tree | 435e95804ce3305a0b340f2b5ef8677792e8671a | |
parent | 7104d520c034d108097ab5cb2a70247267dbf8f8 (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.xml | 7 | ||||
-rw-r--r-- | tox.ini | 3 |
2 files changed, 9 insertions, 1 deletions
@@ -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> @@ -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 |