diff options
Diffstat (limited to 'dnsdesig')
-rw-r--r-- | dnsdesig/pom.xml | 13 | ||||
-rw-r--r-- | dnsdesig/tox.ini | 12 |
2 files changed, 12 insertions, 13 deletions
diff --git a/dnsdesig/pom.xml b/dnsdesig/pom.xml index 9306540..2d96e81 100644 --- a/dnsdesig/pom.xml +++ b/dnsdesig/pom.xml @@ -44,19 +44,12 @@ limitations under the License. <typefile.dest>type_files/dnsdesig/dns_types.yaml</typefile.dest> <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> diff --git a/dnsdesig/tox.ini b/dnsdesig/tox.ini index 9498c82..0b0f114 100644 --- a/dnsdesig/tox.ini +++ b/dnsdesig/tox.ini @@ -20,7 +20,13 @@ envlist = py27 [testenv] deps= - pytest - cloudify==3.4 requests -commands=pytest + cloudify==3.4 + pytest + coverage + pytest-cov +setenv= + PYTHONPATH={toxinidir} +commands= + pytest --junitxml xunit-results.xml --cov dnsdesig --cov-report xml + coverage xml |