https://kotlinlang.org logo
#ksp
Title
# ksp
g

Gustavo Gelape

06/28/2022, 6:13 PM
Hey there folks, I’m trying to run the Symbol Processing API on my instrumented tests (androidTest folder) so i can grab their annotation and add all the class names to a file using KSP, but the KSP stuff doesn’t go through the androidTest folder by default, i tried to add it like this:
Copy code
kotlin {
        sourceSets.debug {
            kotlin.srcDirs += 'src/androidTest/java/com/example/project'
        }
    }
But then everything build related starts to fail since we use a lot of testImplementation, Dagger Hilt, etc. So, my question is, by any chance anyone know a way to include test folders in symbol processing (KSP) without adding them as sourceSets?
j

Jiaxiang

06/29/2022, 8:49 PM
generating for another source set is not yet supported
g

Gustavo Gelape

06/29/2022, 8:51 PM
Oh, ok, thanks! Do you know if there are plans to support this kind of stuff?
j

Jiaxiang

06/29/2022, 8:52 PM
Currently there is no plan, we will have a planning soon, I will note it to see if we want to support this.
g

Gustavo Gelape

06/29/2022, 8:53 PM
thanks again!
5 Views