I have a module with a processor in src/main. I’d like the classes in src/test to be visited by the processor. Is that possible and if so, what configuration would I need for it to work?
y
yigit
01/04/2022, 9:32 PM
They are different compilations so you need to add the processor to the test
j
jameskleeh
01/05/2022, 4:33 AM
You can’t add a ksp scoped dependency to itself so I’m not sure why it doesn’t just work
y
yigit
01/06/2022, 1:06 AM
Oh i misunderstood it. But I think you can still add it, but need to specify the configuration in the dependency.
Alternatively, just use kotlin compile testing
yigit
01/06/2022, 1:06 AM
In room, we use something similar to kotlin compile testing for tests of the processor and use separate integration test modules for running the full processor