summaryrefslogtreecommitdiffstats
path: root/dcae-cli
diff options
context:
space:
mode:
Diffstat (limited to 'dcae-cli')
-rw-r--r--dcae-cli/pom.xml13
-rw-r--r--dcae-cli/tox.ini4
2 files changed, 6 insertions, 11 deletions
diff --git a/dcae-cli/pom.xml b/dcae-cli/pom.xml
index 3eef54a..68a1651 100644
--- a/dcae-cli/pom.xml
+++ b/dcae-cli/pom.xml
@@ -33,19 +33,12 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property.
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sonar.sources>.</sonar.sources>
- <!-- customize the SONARQUBE URL -->
- <!-- sonar.host.url>http://localhost:9000</sonar.host.url -->
- <!-- below are language dependent -->
- <!-- for Python -->
+ <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
+ <sonar.python.coverage.reportPath>coverage.xml</sonar.python.coverage.reportPath>
<sonar.language>py</sonar.language>
<sonar.pluginName>Python</sonar.pluginName>
<sonar.inclusions>**/*.py</sonar.inclusions>
- <!-- for JavaScaript -->
- <!--
- <sonar.language>js</sonar.language>
- <sonar.pluginName>JS</sonar.pluginName>
- <sonar.inclusions>**/*.js</sonar.inclusions>
- -->
+ <sonar.exclusions>tests/*,setup.py</sonar.exclusions>
</properties>
<build>
<finalName>${project.artifactId}-${project.version}</finalName>
diff --git a/dcae-cli/tox.ini b/dcae-cli/tox.ini
index eadd2c2..2d6491c 100644
--- a/dcae-cli/tox.ini
+++ b/dcae-cli/tox.ini
@@ -10,4 +10,6 @@ deps=
mock
setenv =
PYTHONPATH={toxinidir}
-commands=pytest dcae_cli --junitxml xunit-results.xml --cov dcae_cli --cov-report=xml
+commands=
+ pytest dcae_cli --junitxml xunit-results.xml --cov dcae_cli --cov-report xml --cov-report term
+ coverage xml