Added Coverage in SonarQube

This commit is contained in:
Evgeny Ezhov 2019-11-27 23:03:38 +03:00
parent a3a8e31059
commit 120a6adfab
3 changed files with 8 additions and 4 deletions

View file

@ -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

View file

@ -1,4 +1,4 @@
webdavclient3 [![Build Status](https://travis-ci.com/ezhov-evgeny/webdav-client-python-3.svg?branch=develop)](https://travis-ci.com/ezhov-evgeny/webdav-client-python-3) [![PyPI](https://img.shields.io/pypi/v/webdavclient3)](https://pypi.org/project/webdavclient3/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/webdavclient3) webdavclient3 [![Build Status](https://travis-ci.com/ezhov-evgeny/webdav-client-python-3.svg?branch=develop)](https://travis-ci.com/ezhov-evgeny/webdav-client-python-3) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ezhov-evgeny_webdav-client-python-3&metric=alert_status)](https://sonarcloud.io/dashboard?id=ezhov-evgeny_webdav-client-python-3) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=ezhov-evgeny_webdav-client-python-3&metric=coverage)](https://sonarcloud.io/dashboard?id=ezhov-evgeny_webdav-client-python-3) [![PyPI](https://img.shields.io/pypi/v/webdavclient3)](https://pypi.org/project/webdavclient3/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/webdavclient3)
========= =========
Based on https://github.com/designerror/webdav-client-python Based on https://github.com/designerror/webdav-client-python

View file

@ -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