Is using a separate Gradle module the way to go for hosting test utilities?
j
Javier
08/11/2023, 3:06 PM
I don't think there is only one answer as it can be really different based on the use case, but the general use case could be "test fixtures", which are documented on Gradle docs
s
spand
08/14/2023, 6:56 AM
+1 for testFixtures. Really lightweight solution for it.. at least compared to extra modules.
spand
08/14/2023, 6:57 AM
I am not sure how compatible they are with multiplatform however
j
Javier
08/14/2023, 7:28 AM
They don’t work with Android, and I think they don’t work with KMP with or without Android.
➕ 1
e
Edoardo Luppi
08/14/2023, 10:20 AM
I ended up with a separate module. testFixtures are relatively new and there is no support for KMP.