-
Notifications
You must be signed in to change notification settings - Fork 220
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
Make sure record/verify/properties actually affect test tasks #690
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
paparazzi/paparazzi-gradle-plugin/src/main/java/app/cash/paparazzi/gradle/PaparazziPlugin.kt
Outdated
Show resolved
Hide resolved
paparazzi/paparazzi-gradle-plugin/src/main/java/app/cash/paparazzi/gradle/PaparazziPlugin.kt
Outdated
Show resolved
Hide resolved
paparazzi/paparazzi-gradle-plugin/src/main/java/app/cash/paparazzi/gradle/PaparazziPlugin.kt
Outdated
Show resolved
Hide resolved
e520362
to
b97eccb
Compare
Related Gradle feature: gradle/gradle#9092 |
Is there anything missing here @jrodbx? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved again with updated comments. Also, please rebase and squash. Thanks for fixing this!
paparazzi/paparazzi-gradle-plugin/src/main/java/app/cash/paparazzi/gradle/PaparazziPlugin.kt
Outdated
Show resolved
Hide resolved
// Explicitly register these as inputs so that they are considered when determining up-to-date. | ||
// The properties become resolvable after the last afterEvaluate runs. | ||
test.inputs.property("paparazzi.test.record", isRecordRun) | ||
test.inputs.property("paparazzi.test.verify", isVerifyRun) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style nit: can we move this under the other "inputs" (just after "paparazzi.nativePlatform")? also, let's remove the comment, since this is standard Gradle knowledge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it together with the systemProperties, i.e. the first inputs, because they're an implementation detail of the missing inputs.property(name, provider)
API.
paparazzi/paparazzi-gradle-plugin/src/main/java/app/cash/paparazzi/gradle/PaparazziPlugin.kt
Outdated
Show resolved
Hide resolved
...razzi/paparazzi-gradle-plugin/src/test/java/app/cash/paparazzi/gradle/PaparazziPluginTest.kt
Outdated
Show resolved
Hide resolved
…ify parameters are not playing in up to date checks and fix by registering inputs explicitly. Co-authored-by: John Rodriguez <[email protected]>
… builds. It's a standard HashMap not a DomainObjectCollection, so there won't be any further items inserted between filterKeys and doFirst.
b97eccb
to
a232f86
Compare
Addressed all the comments in separate commits, when merging select squash merge please. |
44a7737
to
217a629
Compare
See #206 (comment)
Fixes #747