Inside AndroidX: @Aurimas on ADB https://www.youtube.com/watch?v=Lh-6etOdLdI&list=PLWz5rJ2EKKc-pGh0SJ7hScCv-jepzHTuU&ab_channel=AndroidDevelopers
Android Developer Relations Engineer @ Google
@paul yeah definitely something to keep an eye on! 50gb is massive and you don't need 99% of it. Have you tried flushing old files? That's what was basically impossible on GitHub.
Considerations:
- We're considering removing the instrumented tests that simply assert that something exist. Local screenshot tests cover more and are much more reliable
Uncertain:
- The project contributors might not find the new workflow intuitive.
- Git doesn't generally like big binary files.
- Screenshots can't be commited into forks (you have to create your PR in the fork first)
Example PR: https://github.com/android/nowinandroid/pull/918/files
We added screenshot tests to the Now In Android app!
Some decisions:
- We're using Roborazzi, which uses Robolectric to take the screenshots.
- Screenshots are captured and compared on CI to avoid subtle platform differences. Diff threshold is set to 0.
- We decided to skip git LFS: Old files can't be flushed easily and Github didn't show images correctly.
🧪 Here's a JUnit TestRule that keeps your composable content through activity recreation. It's only needed if you want to test recreation/config changes using an empty activity.
https://gist.github.com/JoseAlcerreca/2fa4ed3c8e6759f8c62eb9e022534103
Feedback welcome!
@codewiththeitalians @ppvi Join us in 15 minutes to see how you can add a test harness for your instrumented tests!
Performance review time at Goog. If you see a manager, hug them.
From Accompanist v0.28.0 you can try out the new Test Harness library!
You can use it in Compose tests to resize a composable so it always fits the device, change locales, toggle dark mode, and more!
📑Check out the docs: https://google.github.io/accompanist/testharness/
Congrats
@alex_vanyo!
@alexvanyo
created a test harness for Compose that lets you fit any Composable into any device, among other things. It's similar to @Preview but for tests.
And we're bringing it to Accompanist. Check it out and give us feedback! https://github.com/google/accompanist/pull/1392
In architecture-templates, I'd like to set up
Renovate bot
so it updates Kotlin and the Compose compiler in an independent PR. If anyone want to take a stab at it, let me know 😅 https://github.com/android/architecture-templates/issues/34
@cb so you've spent more time working on the blog than writing on the blog this year 😆 I've seen this trend though, are we blogging less?
@friendlymike testingggg
Hi #AndroidDevSummit London!