Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paparazzi not work #327

Open
drdla49 opened this issue May 17, 2023 · 4 comments
Open

Paparazzi not work #327

drdla49 opened this issue May 17, 2023 · 4 comments

Comments

@drdla49
Copy link

drdla49 commented May 17, 2023

I used Showkase 1.0.0-beta18 and Paparazzi 1.2.0 in my android app.

I add this to my app build.gradle
classpath("app.cash.paparazzi:paparazzi-gradle-plugin:1.2.0")

This to my Showkase module

plugins {
    id("app.cash.paparazzi")
}

dependencies {
    debugImplementation("com.airbnb.android:showkase:1.0.0-beta18")
    testImplementation("com.airbnb.android:showkase-screenshot-testing-paparazzi:1.0.0-beta18")
    ....
}

apply plugin: "app.cash.paparazzi"

Then run this command
./gradlew recordPaparazziSampleDebug

The result of the command is success but there is no screenshot and no file in folder that is write in terminal.
See the Paparazzi report at: file:///C:/android/Samle/showkase/build/reports/paparazzi/index.html

What am I doing wrong? Thanks for answer

@vinaygaba
Copy link
Collaborator

Did you make sure that you added the showkase-processor dependencies as well? It's part of the setup instructions for Showkase. Look at the Paparazzi sample to understand the dependencies you'd need

https://github.com/airbnb/Showkase/blob/master/showkase-screenshot-testing-paparazzi-sample/build.gradle#L132

@drdla49
Copy link
Author

drdla49 commented May 18, 2023

Thanks for your answer. I add showkase-procesor and now it is trying to create the screenshots.
But every screenshot end with this message:
cz.sample.base.utils.showkase.Test1PaparazziShowkaseScreenshotTest_PaparazziShowkaseTest > test_previews[WidgetMisc**Rating Bar**Full,Pixel5,Ltr,DEFAULT] FAILED java.io.FileNotFoundException at Test1PaparazziShowkaseScreenshotTest_PaparazziShowkaseTest.kt:41

TestLogger:test_previews[WidgetMisc**Rating Bar**Half no count no text,Pixel5,Ltr,DEFAULT] FAILURE (63ms)

Would you happen to have any suggestions? Thank

@iamutkarshtiwari
Copy link

@drdla49 Perhaps this thread in Paparazzi could be of some help?

@vinaygaba
Copy link
Collaborator

@iamutkarshtiwari @drdla49 Was there any clues on what might be causing it? Would appreciate some help if someone can point me to the root cause. Open to fixing it if I can get an easy way to repro (maybe a sample project with a repro?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants