Skip to content

Commit

Permalink
Enable code coverage in SonarQube and add pytest-cov dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
tyutyutyu committed Mar 3, 2024
1 parent eb2f498 commit 22d05e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ sonar.organization=tyutyutyu-1
sonar.python.version=3
sonar.sources=src
sonar.dynamicAnalysis=reuseReports
; sonar.core.codeCoveragePlugin=coverage
; sonar.python.coverage.reportPaths=*coverage*.xml
sonar.core.codeCoveragePlugin=coverage
sonar.python.coverage.reportPaths=*coverage*.xml
; sonar.python.xunit.reportPath=xunit-result*.xml
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ env_list = lint, type, py{310,311,312}
description = run unit tests
deps =
pytest>=7
pytest-cov
pytest-sugar
commands =
coverage run --branch --module pytest {posargs:tests}
Expand Down

0 comments on commit 22d05e2

Please sign in to comment.