gradle-spoon-plugin | Gradle plugin for running Android instrumentation tests | Plugin library
kandi X-RAY | gradle-spoon-plugin Summary
kandi X-RAY | gradle-spoon-plugin Summary
A Gradle plugin for running Android instrumentation tests with Spoon.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of gradle-spoon-plugin
gradle-spoon-plugin Key Features
gradle-spoon-plugin Examples and Code Snippets
// Workaround for Multidex bug in gradle-android-plugin
// Replace Multidex dependency with some dummy dependency to avoid dex problems
// @see https://code.google.com/p/android/issues/detail?id=194609
project.getConfigurations().all { config ->
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'de.felixschulze.gradle:gradle-spoon-plugin:2.7.3'
}
}
apply plugin: 'de.felixschulze.gradle.spoon'
spoon {
teamCityLog = true
debug = true
noAnimations = true
failOnFailure = false
testSizes = ['small', 'medium']
adbTimeout = 10*60
failIfNoDeviceConnected = false
excludedDevices = ['f5adb1a1', 'a6asb224']
}
Community Discussions
Trending Discussions on gradle-spoon-plugin
QUESTION
I am setting up Spoon for Android UI Testing using the gradle-spoon-plugin using the Spoon 2.0.0 snapshot. My project is set up using Android Gradle plug-in 3.0.1.
When taking screenshots via spoonRule.screenshot(activity, "hello")
, I get this RuntimeException:
ANSWER
Answered 2018-Mar-01 at 01:57First, try to find SystemSetting->YOUR_APP->Permission
on Pixel2 (API27), check whether the external storage is disable.
The permissions of EXTERNAL_STORAGE
(both WRITE
and READ
) are required in runtime after API23 (Android 6+). You should check permission and notify user to enable in system configure. see Request App Permissions
Of course the normal apps don't have permission to grant their permissions as usual with pm grant ...
.
An unrecommended solution is make the whole app target on API22. But the correct way also is that check permission and notify user.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install gradle-spoon-plugin
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page