Skip to content

Releases: ndtp/android-testify

2.0.0-beta04

23 Sep 19:38
7aa1bd2
Compare
Choose a tag to compare

2.0.0-beta04

Library

Fixed

  • #163: Do not throw UnexpectedDeviceException if an expected baseline exists

Added

  • Added initial support of Gradle managed devices

Intellij Plugin 2.0.0-rc03

09 Sep 21:05
ce866fb
Compare
Choose a tag to compare

Add support to IntelliJ Plugin for Android Studio Iguana | 2023.2.1 Canary 3 | 232.+

2.0.0-beta03

09 Sep 21:22
2610898
Compare
Choose a tag to compare

2.0.0-beta03

All Projects

Updates

  • Android Gradle Plugin to 7.4.1
  • Android Material material to 1.9.0
  • AndroidX activity-compose to 1.7.1
  • AndroidX appcompat to 1.6.1
  • AndroidX core to 1.10.0
  • AndroidX lifecycle-runtime-ktx to 2.6.1
  • AndroidX Test espresso-accessibility, espresso-core, espresso-contrib to 3.5.1
  • AndroidX Test junit to 1.1.5
  • AndroidX Test monitor to 1.6.1
  • AndroidX Test rules to 1.5.0
  • AndroidX Test runner to 1.5.2
  • Compile SDK to 33
  • Dokka to 1.8.10
  • Jetpack Compose compose.ui, core, material to 1.4.3
  • Jetpack Compose Compile to 1.4.7
  • Kotlin to 1.8.21
  • com.android.application to 7.4.2
  • com.android.library to 7.4.2

Library

Changed

  • Internal file management is now abstracted through the new Destination interface.
    This interface allows for extensibility and customization of the file handling. It is backwards
    compatible with
    the existing SDCard and app data/data directory options.

Bug fixes

  • Fix #81: reportShow and reportPull now support
    Gradle 7+.
  • Exceptions now correctly report the gradle module name of the source of the error.

Added

  • Reporter now supports skipped or ignored tests.
  • Added enableReporter parameter to ComposableScreenshotRule constructor

Sample

  • FlixSample now using Espresso IdlingResource to eliminate screenshot test race condition.

Changed

  • Sample has been renamed to LegacySample and moved to the Samples/Legacy directory.

Gradle Plugin

Added

  • Add multi-user support to the Gradle Plugin.
  • Use -Puser=<number> to override the default user.
  • Added unit tests to the :Plugin project.

Compose Extension

  • Fixed #120 - can set a custom capture method when using ComposableScreenshotRule

Intellij Plugin 2.0.0-rc02

07 May 19:50
55ec61d
Compare
Choose a tag to compare

2.0.0-rc02

  • Added support for Android Studio Hedgehog | 2023.1.1 Canary 2 | 231.+
  • #127 Fix bug parsing nested module names

2.0.0-beta01

30 Apr 18:42
033ce52
Compare
Choose a tag to compare

2.0.0-beta01

Library

Added

  • @IgnoreScreenshot annotation added
    • An annotation used to ignore screenshots tests. Test will be reported as Skipped.
    • Should be used as a more versatile replacement for the orientationToIgnore argument on @ScreenshotInstrumentation

Removed

  • orientationToIgnore argument on @ScreenshotInstrumentation has been removed
    • Use @IgnoreScreenshot instead

Changed

  • Library tests now use mockk.
  • DeviceIdentifier.getDeviceDimensions has been replaced by fun getDeviceDimensions(context: Context): Pair<Int, Int>
  • DeviceIdentifier.getDescription has been replaced by fun getDeviceDescription(context: Context): String
  • DeviceIdentifier.formatDeviceString has been replaced by fun formatDeviceString(formatter: DeviceStringFormatter, format: String): String
  • Class DeviceIdentifier.DeviceStringFormatter has been migrated to a top-level class, DeviceStringFormatter

All Projects

Updates

  • kotlin to 1.7.21
  • kotlin-gradle-plugin to 1.7.21
  • kotlinx-coroutines-android to 1.6.4
  • kotlin-stdlib-jdk8 to 1.7.21
  • Android Gradle Plugin to 7.3.1
  • Gradle wrapper to 7.4
  • androidx.compose.ui to 1.4.0-alpha02
  • androidx.compose.material to 1.4.0-alpha02
  • androidx.compose.compiler to 1.4.0-alpha02

Sample

Updates

  • Upgrade Sample target & compile SDK to 33

Fullscreen Extension Library

Capture the entire device screen, including system UI, dialogs and menus.

Accessibility Checks Extension Library

Combine visual regression testing with accessibility checks to further improve the quality and
expand the reach of your application.

Intellij Plugin 2.0.0-rc01

31 Jan 14:48
839dab0
Compare
Choose a tag to compare

Android Testify Intellij Platform Plugin

[2.0.0-rc01]

  • Added support for Android Studio Giraffe | 2022.3.1 Canary 2 | 223.+
  • Added support for Android Studio Flamingo | 2022.2.1 Beta 1 | 222.+
  • Added support for Android Studio Electric Eel | 2022.1.1 | 221.+
  • Removed support for Android Studio versions older than Bumblebee | 2021.1.1 Patch 3

v2.0.0-alpha02

30 Dec 22:09
dcde52b
Compare
Choose a tag to compare
Publish IntelliJ plugin to stable

2.0.0-alpha02

29 Dec 19:49
4973256
Compare
Choose a tag to compare

2.0.0-alpha02

Compose Extension Library

Changed

  • ComposableScreenshotRule now has an additional constructor argument, composeTestRule. This provides you with a default instance of ComposeTestRule or allows you to provide your own instance. With this composeTestRule instance, you can now use the ComposeTestRule semantics to interact with the UI hierarchy prior to taking screenshots.

      @get:Rule
      val rule = ComposableScreenshotRule(composeTestRule = createAndroidComposeRule(ComposableTestActivity::class.java))
      @ScreenshotInstrumentation
      @Test
      fun default() {
          rule
              .setCompose {
                  var text by remember { mutableStateOf("") }
                  TextField(
                      value = text,
                      onValueChange = { text = it },
                      modifier = Modifier.testTag("field")
                  )
              }
              .setComposeActions { composeTestRule ->
                  composeTestRule.onNodeWithTag("field").performTextInput("testify")
              }
              .assertSame()
      }

Added

  • ComposableTestActivity now supports resource wrapping. This means that Testify can configure the font scale and locale for tests. Compose screenshot tests will now respect the locale and fontScale configuration parameters. Usage:
    rule
        .setCompose {
            Text("Example")
        }
        .setLocale(Locale.FRANCE)
        .setFontScale(2.0f)

2.0.0-alpha01

06 Jun 01:37
230607a
Compare
Choose a tag to compare

What does this change accomplish?

⚠️ Major breaking changes.

This version is provided as an easier migration path to the Testify 2.0 libraries.
2.0.0-alpha01 is identical functionality to 1.2.0-alpha01 but all classes have been updated to use the new dev.testify namespace.

If you update all of your code to reference dev.testify instead of com.shopify.testify you will be better positioned to adopt the new Testify 2.0 API.