Tag: robolectric

  • [TUT] How to run Robolectric JUnit tests in Android Studio

    After my blog post on describing an Android Gradle App with Robolectric JUnit tests. I follow up here with how to run these tests within your AndroidStudio. The outcome being faster feedback from your tests and great IDE integration. Ok here we’ll explain how to create a run configuration that will run all the tests…

  • [TUT] Android Gradle App with Robolectric JUnit tests

    This tutorial will show you the skeleton of an Android application that uses the Gradle build system and runs Robolectric JUnit tests on Android classes. This follows on from my tutorial about JVM JUnit tests, you can have one type of testing without the other. For instance you could bundle all your JVM tests inside…

  • [TUT] Android Gradle App with JVM JUnit tests

    This tutorial will show you the skeleton of an Android application that uses the Gradle build system and runs JUnit tests on java classes. If your here and reading this, I assume you already know Android code runs on Dalvik and the SDK’s used when developing on a computer are stubs. (Hence the Stub! exception…