diff options
author | Andrew Gauld <ag1282@att.com> | 2018-02-21 11:14:46 -0500 |
---|---|---|
committer | Andrew Gauld <ag1282@att.com> | 2018-02-21 11:20:16 -0500 |
commit | 373f0f3559049ea91a3fb47a445c554512c36435 (patch) | |
tree | 5ef98975d4a43abf0c17dc021b303010173de366 /onap-dcae-dcaepolicy-lib | |
parent | e8e4e3878deb5e93ae25f93fe047708a170893ca (diff) |
Make SONAR code coverage analysis work
Change-Id: I8091aea6127b78de404c986be74ecf44935ab92f
Issue-ID: DCAEGEN2-355
Signed-off-by: Andrew Gauld <ag1282@att.com>
Diffstat (limited to 'onap-dcae-dcaepolicy-lib')
-rw-r--r-- | onap-dcae-dcaepolicy-lib/.coveragerc | 4 | ||||
-rw-r--r-- | onap-dcae-dcaepolicy-lib/pom.xml | 1 | ||||
-rw-r--r-- | onap-dcae-dcaepolicy-lib/tox.ini | 5 |
3 files changed, 5 insertions, 5 deletions
diff --git a/onap-dcae-dcaepolicy-lib/.coveragerc b/onap-dcae-dcaepolicy-lib/.coveragerc index 26ed8ac..43c7005 100644 --- a/onap-dcae-dcaepolicy-lib/.coveragerc +++ b/onap-dcae-dcaepolicy-lib/.coveragerc @@ -23,7 +23,3 @@ exclude_lines = if __name__ == .__main__.: ignore_errors = True - -[xml] -output = coverage-reports/coverage-onap_dcae_dcaepolicy_lib.xml - diff --git a/onap-dcae-dcaepolicy-lib/pom.xml b/onap-dcae-dcaepolicy-lib/pom.xml index f8515d7..b3c230e 100644 --- a/onap-dcae-dcaepolicy-lib/pom.xml +++ b/onap-dcae-dcaepolicy-lib/pom.xml @@ -41,6 +41,7 @@ ECOMP is a trademark and service mark of AT&T Intellectual Property. <sonar.language>py</sonar.language> <sonar.pluginName>Python</sonar.pluginName> <sonar.inclusions>**/*.py</sonar.inclusions> + <sonar.exclusions>tests/*,setup.py</sonar.exclusions> <!-- for JavaScaript --> <!-- <sonar.language>js</sonar.language> diff --git a/onap-dcae-dcaepolicy-lib/tox.ini b/onap-dcae-dcaepolicy-lib/tox.ini index 78af290..4b0573e 100644 --- a/onap-dcae-dcaepolicy-lib/tox.ini +++ b/onap-dcae-dcaepolicy-lib/tox.ini @@ -11,4 +11,7 @@ deps= pytest-cov setenv = PYTHONPATH={toxinidir} -commands=pytest --junitxml xunit-reports/xunit-result-onap_dcae_dcaepolicy_lib.xml --cov onap_dcae_dcaepolicy_lib --cov-report=xml +commands= + -mkdir {toxinidir}/logs + pytest --junitxml xunit-reports/xunit-result-onap_dcae_dcaepolicy_lib.xml --cov onap_dcae_dcaepolicy_lib --cov-report xml + coverage xml |