diff options
author | 2018-03-05 10:35:30 +0800 | |
---|---|---|
committer | 2018-03-05 14:34:19 +0800 | |
commit | 379b89a6ba23b6514ffc1aa85b0fdb0c3b78c5cf (patch) | |
tree | 933b2984c5cbb9f19233a057a7191eed830ab27d | |
parent | c1d77aefc384025f908494a2843000b7f41e8a4b (diff) |
Add code coverage for sonar
Change-Id: I3cca97c960694cb010867cfda57057c2722acdaa
Issue-ID: MULTICLOUD-170
Signed-off-by: Bin Sun <bins@vmware.com>
-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 |