Releases: Shopify/android-testify
Final release from Shopify/android-testify
Warning
🚚 We have moved! 🚧
Effective August 1, 2022, all development will occur in our new repository: https://github.com/ndtp/android-testify/
Please consult the Migration Guide for information on how to move your project to the latest artifacts.
v0.1.3
Version 0.1.3 of the Android Testify - Screenshot Instrumentation Tests plugin has been approved by JetBrains and is now publicly available at the following link: https://plugins.jetbrains.com/plugin/14687-android-testify--screenshot-instrumentation-tests/versions/stable/173970.
1.2.0-alpha01
Initial release of testify-compose library
1.1.0
1.1.0
Library and plugin released without additional changes.
v0.1.2
[0.1.2]
Updated
- Intellij plugin now supports Android Studio Bumblebee | 2021.1.1 Canary 9
Build 211.*
1.1.0-rc01
1.1.0-rc01
Library
Bug fixes
-
#228, #215
Account for uneven processing chunk sizes. As Testify processes, it divides the images into chunks for faster, parallel processing.
A bug in the original code assumed that each processing chunk would be equally sized. This caused an out-of-bounds exception in any case where the number of pixels in the image could not be evenly divided. -
#216
You can now useScreenshotRule.setExactness()
in conjunction withScreenshotRule.defineExclusionRects()
. You can now define both an exclusion area and an exactness threshold.
Added
- Method
ScreenshotRule.getExactness():Float?
added.
Changes
-
Method
ScreenshotRule.setExactness(exactness: Float?): ScreenshotRule<T>
now accepts a nullable value. -
TestifyFeatures.GenerateDiffs
now visualizes exclusion regions and the exactness tolerance.
When enabled, GenerateDiffs will write a companion image for your screenshot test which can help you more easily
identify which areas of your test have triggered the screenshot failure.
Diff files are only generated for failing tests.
The generated file will be created in the same directory as your baseline images. Diff files can be pulled from
the device using:screenshotPull
.- Black pixels are identical between the baseline and test image
- Grey pixels have been excluded from the comparison
- Yellow pixels are different, but within the Exactness threshold
- Red pixels are different
-
Method
DeviceIdentifier.getDeviceDimensions(context: Context): Pair<Int, Int>
is now public.
1.1.0-beta3
1.1.0-beta3
Library
Gradle Plugin
Bug fixes
- Several internal changes to support Gradle 7.
- Fix #225
Apply annotations to task properties for up-to-date checks. Adds missing annotations on public properties in Tasks to assist with up-to-date checks. Missing annotations are now errors in Gradle 7.0+. - Fix #234
Using the Testify plugin with AGP 7+ would generate the error "Cannot query the value of property 'applicationId' because configuration of project ':app' has not completed yet". Fixed by catching the error and providing a sensible default. In the case where the test packaged ID is incorrectly inferred, the user can specifytestify { testPackageId "my.custom.package.test" }
in their build.gradle to override the inferred value.
Library
Changes
- Renamed the
rootViewId
setter onScreenshotTestRule
for better Java interoperability. It has been renamed tosetRootViewIdResource
.
v0.1.1
[0.1.1]
Updated
- Intellij plugin now supports Android Studio Arctic Fox | 2020.3.1 Beta 2
Build 203.*
1.1.0-beta2
1.1.0-beta2
Library
Bug fixes
- Fix "ParallelPixelProcessor.kt:90 - java.lang.IndexOutOfBoundsException: index=315250 out of bounds (limit=315250)"
#215
Updates
- AGP from 4.2.0-beta6 to 4.2.0
Sample
Changes
- Remove kotlin-android-extensions from Sample and replace with viewBinding
1.1.0-beta1
Merge pull request #214 from Shopify/release-1.1.0-beta1 Prepare 1.1.0-beta1 release