https://kotlinlang.org logo
t

takahirom

05/06/2022, 11:25 AM
Hi, Does cashapp/paparazzi work with robolectric? When I use @RunWith(AndroidJUnit4::class) with Robolectric as a dependency, it seems that the byte buddy used by paparazzi cannot rewrite the Android View class. Is this the intended behavior? If not, I'm thinking of creating an issue.
Copy code
class redefinition failed: attempted to change the schema (add/remove fields)
Copy code
@RunWith(AndroidJUnit4::class)
class ExampleUnitTest {
    @get:Rule
    val paparazzi = Paparazzi()
9 Views