AndrewReitz / android-spock

Running Spock on Android
Apache License 2.0
89 stars 6 forks source link

Added option to run activity for each tests method. #17

Closed dbacinski closed 9 years ago

dbacinski commented 9 years ago

Added option to run activity for each tests method. It is needed for UI tests (Espresso).

Change is backward compatible.

AndrewReitz commented 9 years ago

Could you document the enum RunMode, and what SPECIFICATION and METHOD do?

I'm working on updating snap so the tests can run.

AndrewReitz commented 9 years ago

I'm seeing "java.lang.IllegalStateException: failed to find target android-22" could this be with the update to the build tools? I have android-22 installed. I'm thinking maybe we should bump the compileSdkVersion to 23?

dbacinski commented 9 years ago

I will do documentation for this change.

Previous builds also failed with the same error, so this is not problem with build tools version. More likely sdk v22 is missing on build agent. I do not know how fix, I have never build project on Snap CI.

dbacinski commented 9 years ago

Documentation added.

dbacinski commented 9 years ago

Regarding failed build check this link: https://docs.snap-ci.com/the-ci-environment/languages/android/

You should execute this to download sdk 22: $ echo y | android update sdk --no-ui --filter android-22

dbacinski commented 9 years ago

Example shell scripts: https://github.com/snap-ci-examples/android-emulator

AndrewReitz commented 9 years ago

I have echo y | android update sdk --no-ui --filter android-22 in the setup. Not sure what changed. I'm going to try and updated everything to 23 today see if that will flush out some of the problems.

AndrewReitz commented 9 years ago

Thanks for this addition!

AndrewReitz commented 9 years ago

@dbacinski Just released to bintray/artifactory and central as 1.2.2. Still can't figure out what's wrong with circle...