I’m trying to report on test coverage using SonarCloud via AWS CodeBuild. The snippet below is in my script, and the
cat successfully prints the content of the coverage report, but on the very next line sonar-scanner fails with a “No such file or directory”. Any insight into what the cause might be?
I’ve tried many variations on the path parameter with no success. The only thing I can think of is that I’ve set
sonar.exclusions=**/test_results/** in the web settings since it was analyzing the report files as code. Would that also prevent the coverage plugin from reading that directory?
cat /www/repos/redshelf_project/test_results/coverage.xml sonar-scanner \ [clipped params] \ -Dsonar.python.coverage.reportPaths=/www/repos/redshelf_project/test_results/coverage.xml
./sonarqube.sh: line 23: -Dsonar.python.coverage.reportPaths=/www/repos/redshelf_project/test_results/coverage.xml: No such file or directory