Coverage required on test files

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,

Hey there.

In your analysis logs, do you see your coverage exclusions? Can you share what you see here?

22:34:42  INFO: Project configuration:
22:34:42  INFO:   Excluded sources: **/node_modules/**
22:34:42  INFO:   Excluded sources for coverage: upgrade/**/*,lib/postgres.js