Hello,
I am also having this problem.
I wish to avoid test coverage for test_*.py
files.
I added in my sonar-project.properties
the following line:
sonar.coverage.exclusions="**/test_*.py, path/to/test/file/test_index.py"
But I still get and error:
Lines to Cover on New Code x
And the path is exactly the same as in sonar.coverage.exclusions
:
path/to/test/file/test_index.py
I am using Github Actions to scan the project
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Any help is appreciated,