awslabs / aws-device-farm-gradle-plugin

Gradle plugin for AWS Device Farm.
Apache License 2.0
61 stars 32 forks source link

Running the plugin says tests were skipped #19

Closed shivani4 closed 6 years ago

shivani4 commented 7 years ago

The build is successful and I get a link to devicefarm and the test run. However, all the tests are skipped. Please can you advise the options available?

apply plugin: 'devicefarm'

devicefarm {

    projectName "*******" // required: Must already exists.

    devicePool "*********" // optional: Defaults to "Top Devices"

    //useUnmeteredDevices() // optional if you wish to use your un-metered devices

    authentication {
        accessKey "******"
        secretKey "*****"
    }

    // optional block, radios default to 'on' state, all parameters optional
    devicestate {
        wifi "on"
        bluetooth "off"
        gps "off"
        nfc "on"
        latitude 47.6204 // default
        longitude -122.3491 // default
    }
    instrumentation {

    }
}
shivani4 commented 7 years ago

Please can I have a reply on the above issue as I am still facing it.

andreas-marschke commented 6 years ago

That's unfortunately something you'll have to take up with AWS and the ADF Support in their Forum.

bradley-curran commented 6 years ago

I've seen this before in my own runs when the configuration has useUnmeteredDevices() set.

If you don't have private devices this will cause all your tests to be skipped.

I've reworked the README to hopefully make this clearer. If this issue continues to come up I'll reevaluate how we handle this feature. Please reopen this issue if you're still having problems.