Added Coverage in SonarQube
This commit is contained in:
parent
a3a8e31059
commit
120a6adfab
3 changed files with 8 additions and 4 deletions
|
@ -21,6 +21,8 @@ before_install:
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- python setup.py develop
|
- python setup.py develop
|
||||||
|
- pip install coverage
|
||||||
script:
|
script:
|
||||||
- python setup.py test
|
- coverage run setup.py test
|
||||||
- sonar-scanner -X
|
- coverage xml
|
||||||
|
- sonar-scanner
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
webdavclient3 [](https://travis-ci.com/ezhov-evgeny/webdav-client-python-3) [](https://pypi.org/project/webdavclient3/) 
|
webdavclient3 [](https://travis-ci.com/ezhov-evgeny/webdav-client-python-3) [](https://sonarcloud.io/dashboard?id=ezhov-evgeny_webdav-client-python-3) [](https://sonarcloud.io/dashboard?id=ezhov-evgeny_webdav-client-python-3) [](https://pypi.org/project/webdavclient3/) 
|
||||||
=========
|
=========
|
||||||
|
|
||||||
Based on https://github.com/designerror/webdav-client-python
|
Based on https://github.com/designerror/webdav-client-python
|
||||||
|
|
|
@ -4,6 +4,8 @@ sonar.organization=ezhov-evgeny
|
||||||
sonar.projectName=webdav-client-python-3
|
sonar.projectName=webdav-client-python-3
|
||||||
sonar.projectVersion=0.13
|
sonar.projectVersion=0.13
|
||||||
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
|
||||||
sonar.sources=.
|
sonar.sources=webdav3
|
||||||
|
sonar.tests=tests
|
||||||
|
sonar.python.coverage.reportPaths=coverage.xml
|
||||||
# Encoding of the source code. Default is default system encoding
|
# Encoding of the source code. Default is default system encoding
|
||||||
sonar.sourceEncoding=UTF-8
|
sonar.sourceEncoding=UTF-8
|
Loading…
Add table
Reference in a new issue