Possible to create test module including Paparazzi? #1056
-
In the project Im working on, we have created an abstract class |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I have a module like that: https://github.com/TWiStErRob/net.twisterrob.sun/tree/4935be3f461e1cf3791ddf205bc5b8dd79183c6e/component/paparazzi Used by other modules: Via a custom plugin, but it doesn't do much: I think the key is that we need to apply the paparazzi plugin to each module being tested, but in the shared module, there's no need to apply the plugin, just add the dependency that would be added as test-only by the paparazzi plugin: |
Beta Was this translation helpful? Give feedback.
I have a module like that: https://github.com/TWiStErRob/net.twisterrob.sun/tree/4935be3f461e1cf3791ddf205bc5b8dd79183c6e/component/paparazzi
Used by other modules:
https://github.com/TWiStErRob/net.twisterrob.sun/blob/4935be3f461e1cf3791ddf205bc5b8dd79183c6e/component/widget/build.gradle.kts#L3
Via a custom plugin, but it doesn't do much:
https://github.com/TWiStErRob/net.twisterrob.sun/blob/4935be3f461e1cf3791ddf205bc5b8dd79183c6e/gradle/plugins/src/main/kotlin/net/twisterrob/sun/plugins/PaparazziPlugin.kt#L14-L17
I think the key is that we need to apply the paparazzi plugin to each module being tested, but in the shared module, there's no need to apply the plugin, just add the depende…