Roboeletic example in kotlin
Clone or download
Latest commit e93fc60 Nov 14, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea added some other events... Sep 19, 2017
app added some other events... Sep 19, 2017
gradle/wrapper Initial commit Sep 18, 2017
.gitignore Initial commit Sep 18, 2017
README.md Update README.md Nov 14, 2017
build.gradle added some other events... Sep 19, 2017
gradle.properties added some other events... Sep 19, 2017
gradlew Initial commit Sep 18, 2017
gradlew.bat Initial commit Sep 18, 2017
settings.gradle Initial commit Sep 18, 2017

README.md

RoboelectricKotlinExample

Roboeletic example in kotlin. Running tests on an Android emulator or device is slow! Building, deploying, and launching the app often takes a minute or more. That’s no way to do TDD. There must be a better way.

Robolectric is a unit test framework that de-fangs the Android SDK jar so you can test-drive the development of your Android app. Tests run inside the JVM on your workstation in seconds.

Install

Starting a New Project

If you'd like to start a new project with Robolectric tests you can refer to deckard (for either maven or gradle) as a guide to setting up both Android and Robolectric on your machine.

Gradle

testCompile "org.robolectric:robolectric:3.5.1"

Maven

<dependency>
   <groupId>org.robolectric</groupId>
   <artifactId>robolectric</artifactId>
   <version>3.5.1</version>
   <scope>test</scope>
</dependency>

Used Technology

About Me

Android Engineer, Dharma Kshetri