It runs successfully but in coverage, my test folder shows as uncovered which bring the total coverage to 40%. I tried following this guide Analysis Scope | SonarCloud Docs but none of it works. What properties should I add to only cover the appropriate code?
Will that be enough? My test folder is inside the MyProjectPy/MyProjectPy folder. Shouldn’t it be sonar.tests=MyProjectPy/test then? I tried different combinations but nothing seems to work yet(
What kind of analysis is this? Is it analysis of a pull request or of your main branch? (the former will only show issues not raised in the target branch, of which these code smells might be included).
Figured it out. My problem was that I did not specify the glob pattern. I expected it to work with just, let’s say, sonar.tests=tests. After I changed it to sonar.tests=tests/**/*.py it worked as I wanted it