-
Notifications
You must be signed in to change notification settings - Fork 3
Zero code coverage despite coverage.xml files saying higher #118
Copy link
Copy link
Open
Labels
B17B18bugSomething isn't workingSomething isn't workings.lowsprint-backlogtask-spillovertask from previous build increment have spilled over into current planning increment.task from previous build increment have spilled over into current planning increment.
Description
Checked for duplicates
Yes - I've already checked
🐛 Describe the bug
When looking at the various repositories tracked at SonarQube Cloud, the "Coverage" stat for every single project is 0.0%
However, when implementing NASA-PDS/portal-infra#104 we saw that coverage was indeed higher and coverage.xml files show coverage as high 97.44% (for peppi. Why this disparity?
🕵️ Expected behavior
I expect coverage numbers of SonarQube Cloud to be reported properly.
📜 To Reproduce
git clone --quiet https://github.com/NASA-PDS/peppicd peppipython3.13 -m venv .venvrm -f coverage.xml.venv/bin/pip install --editable '.[dev]'.venv/bin/toxxmllint --xpath 'string(/*/@line-rate)' coverage.xml 2>/dev/null
At this point you should see 0.9744.
Now visit https://sonarcloud.io/project/overview?id=NASA-PDS_peppi and note that the coverage is 0.0% throughout
🖥 Environment Info
- pytest 7.4.4
- tox 4.11.4
- SonarSource/sonarqube-scan-action@v6
📚 Version of Software Used
No response
🩺 Test Data / Additional context
No response
🦄 Related requirements
🦄 #xyz
⚙️ Engineering Details
No response
🎉 Integration & Test
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
B17B18bugSomething isn't workingSomething isn't workings.lowsprint-backlogtask-spillovertask from previous build increment have spilled over into current planning increment.task from previous build increment have spilled over into current planning increment.
Type
Projects
Status
ToDo
Status
In Progress
Status
In Progress