Unit Test not showing in the Sonarqube for gradle (Kotlin) project

We are using Github actions for the sonarqube, could you please guide me what is missing in this.

because we are seeing the Unit test report in the github summery page but the same is not displaying in the SonarQube

Added the below under build.gradle.kts

tasks.jacocoTestReport {
    reports {
        xml.required.set(true)
    }
}

tasks.named("sonarqube").configure {
    dependsOn("test")
}

Added the below under sonar-project.properties

# Metadata
sonar.projectKey=iom-order-service
sonar.projectName=iom-order-service
sonar.projectVersion=1.0.0

sonar.kotlin.binaries=build/classes
sonar.language=kotlin
sonar.qualitygate.wait=true

sonar.sources=src/main

# Tests
sonar.tests=src/test
sonar.junit.reportPaths=build/test-results/test
sonar.testExecutionReportPaths=build/test-results/**/*.xml
sonar.kotlin.test.binaries=build/classes/kotlin/test
sonar.jacoco.reportPath=build/jacoco/test.exec
sonar.jacoco.xmlReportPaths=build/reports/jacoco/test/*.xml
sonar.coverage.jacoco.xmlReportPaths=build/reports/jacoco/test/*.xml
sonar.core.codeCoveragePlugin=jacoco
sonar.binaries=build/classes
sonar.kotlin.coveragePlugin=jacoco
sonar.dynamicAnalysis=reuseReports
sonar.exclusions=**/config/**

Hi,

I’m fairly certain that SonarScanner for Gradle doesn’t read sonar-project.properties. I’m also certain that you don’t need to tell it where your source and test files are. The docs should help.

 
Ann