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

Assaf Shouval

03/19/2023, 10:09 AM
Hi! I wrote a ksp symbolProcessor, I want now to write a test for it. I have:
package myA; sealed class A
package ksp.processA; class ProcessA : SymoblProcessor{… do some stuff with all extending class of A}
and I want to create just for test:
data class B() : A()
. How can I inject a B class? The problem is that the ksp runs on another package.
ok, asked chatGPT, it was recommending library: com.tschuchort.compiletesting.KotlinCompilation. will check that
5 Views