Skip to content

Releases: sergio-sastre/AndroidUiTestingUtils

2.3.2

13 Apr 05:41
a3f6f97
Compare
Choose a tag to compare

Library upgrades

  • Roborazzi to 1.12.0

2.3.1

04 Apr 16:28
108a7b5
Compare
Choose a tag to compare

Library upgrades

  • Roborazzi to 1.11.0
  • Robolectric to 4.12.1

NOTE
Robolectric 4.12.1 Supports Native Graphics on Windows. Therefore, you could run Roborazzi screenshot tests on Windows as well (theoretically)!

2.3.0

10 Mar 09:18
b8530c4
Compare
Choose a tag to compare

FontSize Config (no breaking changes)

  • Custom Values e.g. FontSizeScale.Value(1.25f)
  • Default Non-Linear values e.g. FontSize.XXXLARGE //1.8f

Cross-Library updates

  • Shot 6.1.0 + maxPixels
  • Roborazzi 1.10.1 + ImageComparator & Metadata
  • Paparazzi 1.3.3

2.2.1

21 Feb 16:28
447ad5b
Compare
Choose a tag to compare

Release with bug fixes only!

  1. Fix DisplaySize and FontSize not resetting values when the test fails or throws an exception in Instrumentation Activity Screenshot Tests #105
  2. Call waitForSync() to AndroidTestifyScreenshotTestRuleForView (used in Cross-Library screenshot tests with Android-Testify) before asserting screenshot to avoid flakiness

2.2.0

23 Jan 19:27
ead0ea4
Compare
Choose a tag to compare

CrossLibrary-Screenshot tests

  • Support for Pseudolocales with all libraries, including Paparazzi!
    Important: It requires paparazzi 1.3.2, so ensure to use the workaround mentioned in Paparazzi 1.3.2 release notes

:android-testify

  • Added ScreenshotRuleWithConfigurationForFragment for easier Fragment screenshot tests

Other Important updates:

  • Requires Kotlin 1.9.x and Compose Compiler 1.5.x
  • Requires compile SDK 34

2.1.1-alpha02

16 Jan 22:14
Compare
Choose a tag to compare
2.1.1-alpha02 Pre-release
Pre-release
  • Migrate from AGP 7.4 to AGP 8.1.1
  • Cross-Library Screenshot tests support for Pseudolocales
    • required update Paparazzi from 1.3.1 to 1.3.2

Important NOTES:
Requires compileSDK 34
and likely...

  • at least AGP 8.1.1 (not tested on other versions)
  • Compose Kotlin Compiler 1.5.0 (not tested with other versions)
  • Kotlin 1.9.0 (not tested with other versions)
  • The workaround mentioned in Paparazzi 1.3.2 release notes

2.1.1-alpha01

07 Jan 18:05
Compare
Choose a tag to compare
2.1.1-alpha01 Pre-release
Pre-release

This release contains no new features, only some maintenance work: AGP and JDK updates

  • AGP 7.4.0
  • JDK 17

2.1.0

08 Dec 19:37
bcf3f98
Compare
Choose a tag to compare

Cross-Library Screenshot Tests updates:

  • Android-Testify support, which supports screenshot testing with Gradle Managed Devices
  • Update Roborazzi to 1.8.0-alpha-6 & added ComparisonStyle.Grid support

Others

  • Add DisableAnimationsTestRule

2.0.1

23 Oct 16:08
6137094
Compare
Choose a tag to compare
  1. Add support for Robolectric/Roborazzi tests to under multiple devices and configs
companion object {
   @JvmStatic
   @ParameterizedRobolectricTestRunner.Parameters
   fun testItemProvider(): Array<TestDataForComposable<MyEnum>> =
      TestDataForComposableCombinator(
         uiStates = MyEnum.values()
      )
         .forDevices(
            PIXEL_4A,
            MEDIUM_TABLET,
         )
         .forConfigs(
            ComposableConfigItem(uiMode = DAY),
            ComposableConfigItem(uiMode = NIGHT),
         )
         .combineAll()
}
  1. Easier Roborazzi tests with RobolectricActivityScenarioForComposable()
    with com.github.sergio-sastre.AndroidUiTestingUtils:roborazzi:2.0.1 dependency:
robolectricActivityScenarioForComposableRule.captureRoboImage(
   filePath("CoffeeDrinkListComposable_${testItem.screenshotId}")
) {
   AppTheme {
      CoffeeDrinkList(coffeeDrink = testItem.uiState.drink)
   }
}
  1. Cross-Library screenshot tests with Roborazzi use 1.7.0-rc-1 under the hood
  2. More Robolectric devices to use with RobolectricActivityScenarios
  • Desktops: small, medium and large desktop
  • Tablets: medium tablet
  • Phones: small and medium phone

2.0.0

11 Sep 15:08
07975b6
Compare
Choose a tag to compare

This version comes with out-of-the box support for Cross-library screenshot tests for:

  • Paparazzi 1.3.1
  • Roborazzi 1.5.0-rc-1
  • Shot 6.0.0
  • Dropshots 0.4.1

Updates:

  • Dropshots to 0.4.1
  • Roborazzi to 1.5.0-rc-1

Fix:

  • Handle cross-library screenshot test without screenshot name