Unit tests in Android Studio 0.8 -



Unit tests in Android Studio 0.8 -

breaking news: android studio 1.1.0 has built-in back upwards unit testing. see more here: https://sites.google.com/a/android.com/tools/tech-docs/unit-testing-support

at first know there very, very, very much similar questions (even here on so). of them terribly outdated i'm asking fresh new question should date android studio 0.8.x.

i know there libraries work somehow, in each case had no evidence info date. know there e.g. roboelectric, there deprecated jake wharton gradle-android-test-plugin or double-espresso, found library robospock , deckard. none of them seems have android studio integration.

after long reseach found 2 bugs in implementations:

the classpath broken , needs been hacked junit running the junit tests cannot been debugged

what i'm looking for:

i want automatically test algorithm (which plain java) i want check integration in android app works i want integration in android studio can jump code out of stacktrace i want step thrue test code

i found somewhere nice hack run tests in gradle external task , pushed results results been displayed, unfortunately cannot find link 1 time again (and if remember correctly did not work me).

do guys have fresh references? work you?

you have edit .iml file android studio generates point test-classes directory , prepare stub error junit. there no work around this.

gradlectric sample uses robolectric gradle plugin run unit tests in android studio.

android unit-testing android-studio

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -