Skip to content

Commit cbc59dc

Browse files
Enable test coverage collection for SonarQube analysis
- Uncomment testCommand to run pytest with coverage reporting - Update sonar-project.properties to properly track src directory - Now generates coverage.xml for SonarQube quality metrics - Matches Retail-Catalog-Enrichment working setup - Enables full code quality analysis and metrics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent de56b84 commit cbc59dc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/sonarqube.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# Language and test configuration
1515
language: python
1616
languageVersion: '3.11'
17-
# testCommand: pytest --cov=chain_server,inventory_retriever,memory_retriever,guardrails --cov-report=xml
17+
testCommand: pytest tests/ --cov=src --cov-report=xml
1818

1919
# Project creation parameters
2020
organization: TEGRASW

sonar-project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
sonar.sourceEncoding=UTF-8
66

77
# Source code location
8-
sonar.sources=.
8+
sonar.sources=src
99
sonar.exclusions=**/*_test.py,**/.git/**,**/venv/**,**/node_modules/**,.github/**,build/**,dist/**
1010

1111
# Python specific settings

0 commit comments

Comments
 (0)