Skip to content

Commit f5aac36

Browse files
authored
PYSCAN-29: Setup coverage (#6)
1 parent 31714b2 commit f5aac36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@ dependencies = [
4545
"coverage[toml]",
4646
"pytest",
4747
"pytest-cov",
48-
"pytest-mock",
4948
]
5049

5150
[tool.hatch.envs.test.scripts]
5251
test = "pytest tests/"
53-
cov = 'pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=tests'
52+
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src/py_sonar_scanner --cov-branch tests"
53+
cov_xml = "pytest --cov-report=xml:coverage.xml --cov-config=pyproject.toml --cov=src/py_sonar_scanner --cov-branch tests"
5454

5555
[[tool.hatch.envs.test.matrix]]
5656
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]

0 commit comments

Comments
 (0)