Skip to content

Commit 28005f2

Browse files
committed
RCB-620: Do not call setup.py. Generate coverage data. Use Sonar recommended relative files setting.
1 parent f815107 commit 28005f2

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

sonar-project.properties

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
sonar.projectKey=rosette-api-python-binding
22
sonar.sources=rosette
33
sonar.python.coverage.reportPaths=coverage.xml
4-
sonar.sources=rosette
5-
sonar.tests=tests
64
#sonar.branch.name=RCB-596-pool-size

tox.ini

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
# Tox (http://tox.testrun.org/) is a tool for running tests
2-
# in multiple virtualenvs. This configuration file will run the
3-
# test suite on all supported python versions. To use it, "pip install tox"
4-
# and then run "tox" from this directory.
5-
61
[tox]
7-
skipsdist = True
82
envlist = py3
3+
skipsdist = True
94

105
[testenv]
11-
commands =
12-
{envpython} setup.py install
13-
{envbindir}/py.test
146
deps =
157
pytest
168
pep8
179
httpretty
1810
epydoc
1911
requests
12+
coverage
13+
build
14+
15+
commands =
16+
python -m build
17+
coverage run -m pytest
18+
coverage xml
19+
20+
[coverage:run]
21+
relative_files = True

0 commit comments

Comments
 (0)