# Does SonarCloud support Kotlin Multiplatform?

**URL:** <https://community.sonarsource.com/t/does-sonarcloud-support-kotlin-multiplatform/9849>\
**Category:** SonarQube Cloud\
**Tags:** kotlin\
**Created:** [May 16, 2019, 8:26pm UTC](https://community.sonarsource.com/t/does-sonarcloud-support-kotlin-multiplatform/9849 "2019-05-16T20:26:21Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![nilsjr](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/nilsjr/32/21791_2.png) [@nilsjr](https://community.sonarsource.com/u/nilsjr)\
**Post date:** [May 3, 2021, 10:04am UTC](https://community.sonarsource.com/t/does-sonarcloud-support-kotlin-multiplatform/9849/11 "2021-05-03T10:04:14Z")

</div>

Whats the current state of this issue? Is this part of the roadmap due increased importance of KMM projects.

I’ve tried several configurations:  
My module structure:  
/module/src/commonMain  
/module/src/commonTest  
/module/src/androidMain  
/module/src/androidTest

**Plugin configuration:**  
property(“sonar.sources”, buildutils.SonarQubeUtils.sourcePaths)  
property(“sonar.tests”, buildutils.SonarQubeUtils.testPaths)  
property(“sonar.junit.reportPaths”, “$buildDir/test-results/testDebugUnitTest”)

```
object SonarQubeUtils {

  val sourcePaths = listOf(
    "src/commonMain/kotlin",
    "src/androidMain/kotlin",
  ).joinToString(separator = ",")

  val testPaths = listOf(
    "src/commonTest/kotlin",
    "src/androidTest/kotlin",
  ).joinToString(separator = ",")
}

```

then running gradle sonarqube:  
_Resource not found: package.TrackingTest under the directory /XX while reading test reports. Please, make sure your “sonar.junit.reportPaths” property is configured properly_

Whats the problem?  
junit.reportPaths targets /test-results/testDebugUnitTest/TEST-package.TrackingTest.xml but the error message reports test class not found. Above I defined sonar.test with commonTest where the plugin should find the class (src/commonTest/kotlin/package/TrackingTest.kt)

SonarQube plugin version: 3.2.0

---

_[View the full topic](https://community.sonarsource.com/t/does-sonarcloud-support-kotlin-multiplatform/9849)._
