Questions tagged [spoon]

Tool to test Android apps with different hardware specifications by distributing instrumentation test and displaying the results in a meaningful way.

Android's ever-expanding ecosystem of devices creates a unique challenge to testing applications. Spoon aims to simplify this task by distributing instrumentation test execution and displaying the results in a meaningful way.

Instead of attempting to be a new form of testing, Spoon makes existing instrumentation tests more useful. Using the application APK and instrumentation APK, Spoon runs the tests on multiple devices simultaneously. Once all tests have completed, a static HTML summary is generated with detailed information about each device and test.

Latest release: 1.7.1 released on Feb 3, 2017

185 questions
68
votes
1 answer

"unknown-sdk" device when executing tests in Jenkins

I have a strange situation with Jenkins when trying to run the tests. The configuration of the job clearly specifies to run the tests on this specific avd: "hudson_en-US_160_HVGA_android-18_armeabi-v7a", but for some odd reasons, during the build…
Andy Res
  • 15,963
  • 5
  • 60
  • 96
16
votes
2 answers

RuntimeException: Unable to create output dir: /storage/emulated/0/app_spoon-screenshots

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…
Mark
  • 7,306
  • 8
  • 45
  • 87
15
votes
2 answers

Android Gradle app:connectedCheck runs tests from dependencies

I have some library project that has its own tests. I'm not responsible for this library project and don't care about its tests, however, when I run gradle :app:connectedCheck it runs my tests but it also runs the dependencies' tests. Is there any…
snotyak
  • 3,709
  • 6
  • 35
  • 52
11
votes
4 answers

How to get Spoon to take screenshots for Espresso tests?

I've been trying to follow the instructions on getting Spoon 1.1.14 to take screenshots for failing Espresso tests. What's the best way to configure this with a custom Espresso FailureHandler?
Dan J
  • 25,433
  • 17
  • 100
  • 173
7
votes
2 answers

Parameterized instrumentation tests on Android

I'm trying to write a batched instrumentation test (using ActivityInstrumentationTestCase2) for a particular Activity where I change the intent each time the test runs. I can do this with a single test, and just loop through stopping and restarting…
Christopher Perry
  • 38,891
  • 43
  • 145
  • 187
6
votes
0 answers

Android instrumented tests code coverage report that includes all app modules

I have an Android project with multiple library modules. At the application module I have some instrumentation tests that test the main functionalities of the app and I want to record the code coverage when running those tests. When running the…
5
votes
1 answer

Application choosers - Android Espresso unit tests breaking after opening external URL

I have an Android App with a login screen, which also contains a forgot password button that brings you to a website for further assistance. I'm testing it using Spoon and Espresso, with the following simple test function: @Test public void…
Combuster
  • 583
  • 5
  • 19
5
votes
4 answers

Set applicationApk and instrumentationApk for Spoon Gradle Plugin

I'd like to set .apk files that will be used to run my tests with SpoonGradlePlugin. There are available properties I can set programatically from gradle…
F1sher
  • 7,140
  • 11
  • 48
  • 85
5
votes
1 answer

Running specific tests using Espresso and Spoon

I am using Espresso and Spoon for my android tests. I am extremely pleased with these. My only problem is I am trying to run a specific test. I found this on the spoon site: gradle spoon -PspoonClassName=fully.qualified.TestCase But I cannot get…
Chad Bingham
  • 32,650
  • 19
  • 86
  • 115
4
votes
1 answer

Spoon JAR for local testing

I'm trying to test making changes to the Spoon source (trying to learn how it all works) but can't figure out how to build the final jar (with dependencies similar to the one available from the site) that we can then use to run independently. I…
Bootstrapper
  • 1,089
  • 3
  • 14
  • 33
4
votes
1 answer

Running instrumentation tests from specific package via spoon-gradle plugin

I am using spoon-gradle-plugin from Roman Mazur. I am capable of running all tests at once but I am having trouble to specify "group" of tests that I would like to launch. Currently my spoon setup looks like that: spoon { debug = true …
F1sher
  • 7,140
  • 11
  • 48
  • 85
4
votes
1 answer

Pentaho - Having multiple Copy rows to result results in Get rows from result empty

I'm trying to process some data and store it in a datawarehouse. For doing it, I wanted to store dimensions in one transformation and fact (only have one) in another transformation. So I can use a job for execute the first one, copy rows to result…
Lyd
  • 2,106
  • 3
  • 26
  • 33
4
votes
1 answer

Spoon + TeamCity

I want to test my app using Spoon + TeamCity. TeamCity is a remote server, is it possible to get access to android devices to run Spoon tests from TeamCity? Has anybody faced this problem?
ADK
  • 513
  • 3
  • 8
  • 22
4
votes
1 answer

Passing Variables via command line with Spoon/Espresso (android-test-kit)

I am running Espresso test with Spoon. How can I pass a value in to my test at runtime? I have done things like this before, but I do not have an onCreate in my Espresso test. So, how should I pass them in? Currently I am running my test via…
Chad Bingham
  • 32,650
  • 19
  • 86
  • 115
3
votes
2 answers

No "unaligned" apks are generated with gradle plugin 2.2.0, breaking Spoon runner

Using android gradle plugin 2.2.0: buildscript { repositories { maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath "com.android.tools.build:gradle:2.2.0" } } and running ./gradlew…
Jared Burrows
  • 54,294
  • 25
  • 151
  • 185
1
2 3
12 13