Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Trouble Specifying devices (or excluding devices).... #147

Open
Nefariis opened this issue Mar 10, 2017 · 2 comments
Open

Trouble Specifying devices (or excluding devices).... #147

Nefariis opened this issue Mar 10, 2017 · 2 comments

Comments

@Nefariis
Copy link

Nefariis commented Mar 10, 2017

I am trying to make use of Spoon's Device/skipDevice feature and no matter how I try to implement it, it seems to kick off every device connected instead of the ones I am telling it to try/skip.

buildscript {
    repositories {
        jcenter()
        mavenCentral()
        maven {
            url 'https://maven.fabric.io/public'
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.0'
        classpath 'io.fabric.tools:gradle:1.22.0'
        classpath 'com.stanfy.spoon:spoon-gradle-plugin:1.2.2'
    }
}
afterEvaluate {
    apply plugin: 'spoon'
    spoon {
        // debug = true;
        // codeCoverage = true
        devices = ['172.24.197.74:7437', '172.24.197.74:7401']
        skipDevices = ['172.24.197.74:7441', '172.24.197.74:7445']
    }
}

(I should mention that the devices are over a network but are accessed normally through adb shell 172.24.197.74:7441)

I kick everything off with - ./gradlew clean spoon -i

Everything runs fine and the outputs report normally, but the tests run across every device connected instead of the ones specified (and I've tried enabling one and not the other and visa versa)

If I try to use spoon without the afterEvaluate feature, I end up with this error -
specified for property 'applicationApk' does not exist

Any thoughts on what I might be able to try?

Thank you

@roman-mazur
Copy link
Contributor

roman-mazur commented Mar 11, 2017 via email

@santoshgistto
Copy link

santoshgistto commented Mar 15, 2017

i am connecting all devices which are connected to openstf device to my machine.
and running the spoon test, but spoon is not picking the connected device to run

`2017-03-16 00:02:28 [SR.runTests] Executing instrumentation suite on 0 device(s).
:app:spoon

BUILD SUCCESSFUL

`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants