Releases: ndtp/android-testify
Releases · ndtp/android-testify
Intellij Plugin 2.0.0-rc01
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
Publish IntelliJ plugin to stable
2.0.0-alpha02
2.0.0-alpha02
Compose Extension Library
Changed
-
ComposableScreenshotRulenow has an additional constructor argument,composeTestRule. This provides you with a default instance ofComposeTestRuleor allows you to provide your own instance. With thiscomposeTestRuleinstance, you can now use theComposeTestRulesemantics 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
ComposableTestActivitynow supports resource wrapping. This means that Testify can configure the font scale and locale for tests. Compose screenshot tests will now respect thelocaleandfontScaleconfiguration parameters. Usage:rule .setCompose { Text("Example") } .setLocale(Locale.FRANCE) .setFontScale(2.0f)
2.0.0-alpha01
What does this change accomplish?
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.