Closed mr-thierry closed 9 months ago
See https://github.com/TWiStErRob/net.twisterrob.sun/tree/main/component/paparazzi Which is used here for example: https://github.com/TWiStErRob/net.twisterrob.sun/blob/main/feature/configuration/build.gradle.kts via https://github.com/TWiStErRob/net.twisterrob.sun/blob/main/gradle/plugins/src/main/kotlin/net/twisterrob/sun/plugins/PaparazziPlugin.kt#L16
Note: adding a dependency to the Paparazzy library fixed my issue. It would be a good idea to put that in the documentation IMHO. :)
Closing as fixed per @TWiStErRob's response
I have a project with multiple modules. Each modules is a UI component of the Android app.
I created a custom
TestRule
namedFooTestRule
. It works fine if the test rule is next to a snapshot test in atest
folder.But I want to share
FooTestRule
with every Paparazzi tests in every modules. I tried two ways to share thisTestRule
:src/testFixtures/java/
FooTestRule
under/src/main/java
.This
TestRule
imports for examplecom.android.ide.common.rendering.api.SessionParams.RenderingMode.SHRINK
. But this import doesn't work when I moveFooTestRule
undersrc/testFixtures/java/
or/src/main/java
. My guess is that Paparazzi only adds the dependencies to thetests
(which makes sense in a way). But I would like to be able to configure that.