diff options
author | xinhuili <lxinhui@vmware.com> | 2018-03-05 07:38:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-03-05 07:38:09 +0000 |
commit | ad224a0e9238ec101ecc92d305fc747b60a08c4b (patch) | |
tree | 8cb6550ba99d32bdc3d4c163adc0f889c3931a1e | |
parent | dbb7e33fd422411e3ec0176e2ac214f858f548b8 (diff) | |
parent | 379b89a6ba23b6514ffc1aa85b0fdb0c3b78c5cf (diff) |
Merge "Add code coverage for sonar"
-rw-r--r-- | pom.xml | 7 | ||||
-rw-r--r-- | vio/tox.ini | 1 |
2 files changed, 8 insertions, 0 deletions
@@ -33,6 +33,13 @@ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <nexusproxy>https://nexus.onap.org</nexusproxy> + <sonar.sources>.</sonar.sources> + <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath> + <sonar.python.coverage.reportPath>vio/coverage.xml</sonar.python.coverage.reportPath> + <sonar.language>py</sonar.language> + <sonar.pluginName>Python</sonar.pluginName> + <sonar.inclusions>**/*.py</sonar.inclusions> + <sonar.exclusions>tests/*,setup.py</sonar.exclusions> </properties> <build> </build> diff --git a/vio/tox.ini b/vio/tox.ini index 966b7bb..f2df905 100644 --- a/vio/tox.ini +++ b/vio/tox.ini @@ -25,3 +25,4 @@ setenv= commands = coverage erase {[testenv]commands} + coverage xml -i
\ No newline at end of file |