Skip to content

Releases: ndtp/android-testify

Intellij Plugin 2.0.0-rc01

31 Jan 14:48
839dab0

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

Choose a tag to compare

Publish IntelliJ plugin to stable

2.0.0-alpha02

29 Dec 19:49
4973256

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

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.