Releases: Shopify/android-testify
1.0.0 Stable
1.0.0-rc3 was promoted to stable 1.0.0 release without further changes 🎉
1.0.0-rc3
1.0.0-rc3
Library
Changes
- ScreenshotUtility is now public
- ScreenshotBaselineNotDefinedException now reports the expected device key
Added
- Public method getRootViewId() has been added to ScreenshotRule
v0.1.0
[0.1.0]
Added
- You can now invoke Testify commands from the class level.
- Menu items now have icons.
Changed
- Reworded the menu items for clarity.
Updated
- Upgraded gradle from 6.5.1 to 6.8.1
- Upgraded kotlin-reflect from 1.4.10 to 1.4.21
1.0.0-rc2
1.0.0-rc2
Library
Bug fixes
- Increase the timeout values on orientation change. Addresses various
Failed to apply requested rotationandActivity did not resumeerrors when invokingsetOrientation.
Updates
- Android Gradle Plugin to 4.1.0
- Gradle Wrapper to 6.5
Gradle Plugin
Bug fixes
- Access task names lazily via names property. We were previously accessing task names in a way which resulted in early configuration of tasks resulting in Gradle failing to sync on the latest versions of Gradle and Android Gradle Plugin when custom lint checks were used in a project. Likely related to https://issuetracker.google.com/issues/67482030#comment2.
Use theTaskContainer.nameswhich doesn't cause all tasks to be resolved immediately.
Sample App
- Update Sample application to use a Pixel 3a API 30 baseline emulator.
v0.0.2
Merge pull request #177 from DanielJette/plugin-support-as-4.1 Properly support Android Studio 4.1
1.0.0-rc1
1.0.0-rc1
Changes
- Replace Travis CI with GitHub Actions. https://github.com/Shopify/android-testify/actions
Library
Bug fixes
-
Fix #138
Introduce thesetFocusTargetmethod onScreenshotRulewhich allows for keyboard focus to be placed on an explicit View. -
Fix #165
Increase the timeout on the ActivityLifecycleMonitor to 5 seconds to allow for the rotation to complete.
Deregister the lifecycle callback. -
Fix #166
Replace the existing FuzzyCompare algorithm with CIEDE2000. Calculate the colour difference value between two colours in lab space.
The CIELAB color space (also known as CIE L* a* b* or sometimes abbreviated as simply "Lab" color space) is a color space defined by the International Commission on Illumination (CIE) in 1976.
It expresses color as three values: L* for the lightness from black (0) to white (100), a* from green (−) to red (+), and b* from blue (−) to yellow (+).
CIELAB was designed so that the same amount of numerical change in these values corresponds to roughly the same amount of visually perceived change.
The CIE calls their distance metric ΔE * ab where delta is a Greek letter often used to denote difference, and E stands for Empfindung; German for "sensation".
If deltaE < 1 then the difference can't recognized by human eyes.
Plugin
Changed
- The gradle plugin has moved to
Plugins/Gradle
v0.0.1
Release 0.0.1 to production channel
1.0.0-Beta5
1.0.0-beta5
Library
New
- Add defineExclusionRects method to ScreenshotRule. You can now use defineExclusionRects to exclude regions from a bitmap comparison.
Updates
- Android Gradle Plugin to 4.0.0
- AndroidX Junit to 1.1.1
- AndroidX Test Rules to 1.2.0
- Kotlin to 1.3.72
- Mockito to 3.3.3
1.0.0-beta4
Plugin
New
- Added
autoImplementLibrarymember to thetestifyextension. Defaults totrue.
When set tofalse, prevents the Plugin from automatically adding a LibraryandroidTestImplementationdependency to your project.
This is useful for local debugging or if you require a different version of the library and plugin.
Library
Bug fixes
- Fixed issue #153 - Orientation change will now be reliably applied regardless of how many times you invoke
setOrientationin a single test class.
1.0.0-beta3
Merge pull request #152 from Shopify/151-fix-plugin-locale Fixed issue #151. Plugin correctly displays Locale string with an underscore, not a dash. e.g. `en_US`, not `en-US`