diff options
Diffstat (limited to 'dcae-policy')
-rw-r--r-- | dcae-policy/.coveragerc | 4 | ||||
-rw-r--r-- | dcae-policy/pom.xml | 14 | ||||
-rw-r--r-- | dcae-policy/tox.ini | 6 |
3 files changed, 7 insertions, 17 deletions
diff --git a/dcae-policy/.coveragerc b/dcae-policy/.coveragerc index 2e600b5..eba9bd0 100644 --- a/dcae-policy/.coveragerc +++ b/dcae-policy/.coveragerc @@ -23,7 +23,3 @@ exclude_lines = if __name__ == .__main__.: ignore_errors = True - -[xml] -output = coverage-reports/coverage-dcaepolicyplugin.xml - diff --git a/dcae-policy/pom.xml b/dcae-policy/pom.xml index a96f6d2..5f96122 100644 --- a/dcae-policy/pom.xml +++ b/dcae-policy/pom.xml @@ -32,21 +32,13 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property. <url>http://maven.apache.org</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - <sonar.skip>true</sonar.skip> <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-policy/tox.ini b/dcae-policy/tox.ini index b78ba54..40caed5 100644 --- a/dcae-policy/tox.ini +++ b/dcae-policy/tox.ini @@ -11,5 +11,7 @@ deps= pytest-cov setenv = PYTHONPATH={toxinidir} -# recreate = True -commands=pytest --junitxml xunit-reports/xunit-result-dcaepolicyplugin.xml --cov dcaepolicyplugin --cov-report=xml +commands= + -mkdir logs + pytest --junitxml xunit-results.xml --cov dcaepolicyplugin --cov-report xml + coverage xml |