File tree Expand file tree Collapse file tree 6 files changed +10
-4
lines changed Expand file tree Collapse file tree 6 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -14,3 +14,5 @@ qpylib.egg-info
14
14
RemoteSystemsTempFiles
15
15
qpylib /version.py
16
16
.idea /
17
+ coverage.xml
18
+ .coverage
Original file line number Diff line number Diff line change 1
1
[ ![ Build Status] ( https://travis-ci.com/IBM/qpylib.svg?branch=master )] ( https://travis-ci.com/IBM/qpylib )
2
2
[ ![ Quality Gate Status] ( https://sonarcloud.io/api/project_badges/measure?project=qpylib&metric=alert_status )] ( https://sonarcloud.io/dashboard?id=qpylib )
3
+ [ ![ Coverage] ( https://sonarcloud.io/api/project_badges/measure?project=qpylib&metric=coverage )] ( https://sonarcloud.io/component_measures?id=qpylib&metric=new_coverage&view=list )
3
4
4
5
5
6
# QRadar App Python Library (qpylib)
@@ -22,4 +23,3 @@ any code contained herein is unsupported and subject to change.
22
23
* [ CONTRIBUTING] ( CONTRIBUTING.md )
23
24
* [ MAINTAINERS] ( MAINTAINERS.md )
24
25
* [ CHANGELOG] ( CHANGELOG.md )
25
-
Original file line number Diff line number Diff line change @@ -8,3 +8,5 @@ rm -f qpylib/version.py
8
8
rm -rf dist qpylib.egg-info
9
9
rm -rf qpylib/__pycache__
10
10
rm -rf test/__pycache__
11
+ rm -f .coverage
12
+ rm -f coverage.xml
Original file line number Diff line number Diff line change 2
2
requests
3
3
pycryptodome
4
4
cryptography
5
- pylint
6
- pytest
7
5
responses
6
+ pylint == 2.5.3
7
+ pytest == 5.4.3
8
+ pytest-cov == 2.10.0
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ sonar.organization=qradar-app-framework
4
4
sonar.projectKey =qpylib
5
5
sonar.tests =test
6
6
sonar.host.url =https://sonarcloud.io
7
+ sonar.python.coverage.reportPaths =coverage.xml
Original file line number Diff line number Diff line change 3
3
#
4
4
# SPDX-License-Identifier: Apache-2.0
5
5
6
- python -m pytest -v test
6
+ python -m pytest -v --cov-report xml:coverage.xml --cov-report term --cov=qpylib test
You can’t perform that action at this time.
0 commit comments