Please provide
-
Operating system:windows 10
-
Programming language you’re coding in: symfony 5.3
-
Is connected mode used: local
SonarQube version: sonarqube-9.9.1.69595 LTS
And a thorough description of the problem / question:
Hello everyone,
when running sonarscanner to analyze my project, the number of tests executed does not display in the sonarque dashboard. Looking in Git Bash I see the following error:
warn: Failed to resolve 85 file path(s)in PHPUnit tests phpunit-execution-result.xml report. Nothing is imported related to file(s):tests/Command/ImportCitiesCommandTest.php;…
I tried to put absolute path and relative path but the problem persists.
Please could you help me to solve this problem?
thank you very much in advance.
That’s the content of my sonar-project.properties file:
User credentials.
Permissions to create tables, indices and triggers must be granted to JDBC user.
The schema must be created first.
sonar.jdbc.username=sonar
sonar.jdbc.password=sonar
sonar.sourceEncoding=UTF-8
#sonar projectKey and projectKey
sonar.projectKey=Final_Test
sonar.projectName=Final_Test
sonar.projectVersion=1.0
sonar.sources=D:/Project/Final_Test/project-backend/src,D:/Project/Final_Test/project-backend/config,D:/Project/Final_Test/project-backend/public,D:/Project/Final_Test/project-backend/templates,D:/Project/Final_Test/project-backend/tests
sonar.php.coverage.reportPaths=phpunit-coverage-result.xml
sonar.php.tests.reportPath=phpunit-execution-result.xml
#----- PostgreSQL 11 or greater
sonar.jdbc.url=jdbc:postgresql://localhost/sonarqube?currentSchema=public