SonarQube version: 18.104.22.168138
Thank you for looking at my report.
Directory is not excluded from code coverage calculations based on the regex pattern applied to the property sonar.coverage.exclusions. The same regex pattern is set in the sonar.exclusions property, which successfully matches the directory and excludes it entirely from any calculation.
This is undesirable as I still want the tests to follow the same rules as the rest of the code, but not be included in the overall code coverage.
Steps to reproduce/error observed:
Have a directory called test and set the regex pattern
Set the regex to in sonar.coverage.exclusions :
Expected: to remove the directory from code coverage calculation
Actual: Directory not excluded from cove coverage
Same regex pattern set in sonar.exclusions:
Expected: To remove the directory from all code calculations
Actual: Is working as expected, the directory is removed from all calculations.
Let me know if I need to provide any other relevant logs or material in order to diagnose and solve the issue.