usefulness / screenshot-tests-for-android Goto Github PK
View Code? Open in Web Editor NEWGenerate fast deterministic screenshots during Android instrumentation tests
License: Apache License 2.0
Generate fast deterministic screenshots during Android instrumentation tests
License: Apache License 2.0
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Location: renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid configuration option: includeForks
You have no CI support, so I did a test run locally with ./gradlew cAT
But it fails with
> Task :android:connectedDebugAndroidTest
Starting 2 tests on API_30_Google_Api(AVD) - 11
io.github.usefulnes.testing.screenshot.sample.ScreenshotsSampleActivityTest > testScreenshotEntireActivityWithoutAccessibilityMetadata[API_30_Google_Api(AVD) - 11] FAILED
java.lang.RuntimeException: Failed to create the directory /sdcard/screenshots/io.github.usefulness.testing.screenshot.sample.test/screenshots-default for screenshots. Is your sdcard directory read-only?
at com.facebook.testing.screenshot.internal.ScreenshotDirectories.getSdcardDir(ScreenshotDirectories.java:119)
io.github.usefulnes.testing.screenshot.sample.ScreenshotsSampleActivityTest > testScreenshotEntireActivity[API_30_Google_Api(AVD) - 11] FAILED
java.lang.RuntimeException: Failed to create the directory /sdcard/screenshots/io.github.usefulness.testing.screenshot.sample.test/screenshots-default for screenshots. Is your sdcard directory read-only?
at com.facebook.testing.screenshot.internal.ScreenshotDirectories.getSdcardDir(ScreenshotDirectories.java:119)
Tests on API_30_Google_Api(AVD) - 11 failed: There was 2 failure(s).
> Task :android:connectedDebugAndroidTest FAILED
The following code worked in 0.17.2, but in 0.17.4 results in custom test runner being overwritten by the library runner:
pluginManager.apply("com.facebook.testing.screenshot")
configure<LibraryExtension> {
defaultConfig {
testInstrumentationRunner = CUSTOM_RUNNER_CLASS
}
}
Workaround is to set the runner using the same APIs as the plugin, which hopefully is deterministic and runs onVariant
callbacks in order:
pluginManager.apply("com.facebook.testing.screenshot")
configure<LibraryAndroidComponentsExtension> {
beforeVariants { variantBuilder ->
variantBuilder.androidTest.enable = true
}
onVariants {
it.androidTest?.instrumentationRunner?.set(CUSTOM_RUNNER_CLASS)
}
}
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
.github/workflows/after_merge.yml
actions/checkout v4
actions/setup-java v4
gradle/actions v3
actions/cache v4
.github/workflows/dependencies.yml
actions/checkout v4
actions/setup-java v4
gradle/actions v3
usefulness/dependency-tree-diff-action v2
peter-evans/find-comment v3
peter-evans/create-or-update-comment v4
.github/workflows/publish_release.yml
actions/checkout v4
actions/setup-java v4
gradle/actions v3
.github/workflows/pull_request.yml
actions/checkout v4
actions/setup-java v4
gradle/actions v3
gradle/actions v3
actions/upload-artifact v4
actions/upload-artifact v4
actions/checkout v4
actions/setup-java v4
gradle/actions v3
reactivecircus/android-emulator-runner v2
actions/upload-artifact v4
actions/upload-artifact v4
reactivecircus/android-emulator-runner v2
actions/upload-artifact v4
actions/upload-artifact v4
.github/workflows/run_diffuse.yml
actions/checkout v4
actions/setup-java v4
actions/cache v4
gradle/actions v3
peter-evans/find-comment v3
peter-evans/create-or-update-comment v4
actions/upload-artifact v4
gradle.properties
settings.gradle
org.gradle.toolchains.foojay-resolver-convention 0.8.0
com.gradle.develocity 3.17.5
build.gradle
gradle/libs.versions.toml
com.android.tools.build:gradle-api 8.5.0
com.android.tools.build:gradle 8.5.0
org.jetbrains.kotlin:kotlin-gradle-plugin 2.0.0
org.junit.jupiter:junit-jupiter 5.10.2
org.assertj:assertj-core 3.26.0
androidx.core:core-ktx 1.13.1
androidx.annotation:annotation 1.8.0
androidx.test:core 1.5.0
androidx.test:runner 1.5.2
androidx.test:rules 1.5.0
androidx.test.ext:junit-ktx 1.1.5
androidx.test.espresso:espresso-core 3.5.1
androidx.appcompat:appcompat 1.7.0
com.google.android.material:material 1.12.0
androidx.coordinatorlayout:coordinatorlayout 1.2.0
androidx.test.services:test-services 1.4.2
dev.chrisbanes.insetter:insetter 0.6.1
org.jetbrains.kotlinx:kotlinx-serialization-json 1.7.0
com.sksamuel.scrimage:scrimage-core 4.1.3
com.dropbox.differ:differ 0.0.2
com.starter.config 0.75.0
com.starter.versioning 0.75.0
com.starter.library.kotlin 0.75.0
com.starter.library.android 0.75.0
com.starter.application.android 0.75.0
com.gradle.plugin-publish 1.2.1
com.osacky.doctor 0.10.0
org.jetbrains.kotlinx.binary-compatibility-validator 0.14.0
org.jetbrains.kotlin.plugin.serialization 2.0.0
dev.drewhamilton.poko 0.16.0
gradle/plugins/settings.gradle
org.gradle.toolchains.foojay-resolver-convention 0.8.0
gradle/plugins/build.gradle
sample/gradle.properties
sample/settings.gradle
com.gradle.develocity 3.17.5
sample/build.gradle
sample/android/build.gradle
screenshot-testing-core/build.gradle
screenshot-testing-plugin/build.gradle
gradle/wrapper/gradle-wrapper.properties
gradle 8.8
sample/gradle/wrapper/gradle-wrapper.properties
gradle 8.8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.