summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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