# Android Unit Testing using Robolectric (I): Introduction

DevFeed: [Android Unit Testing using Robolectric (I): Introduction](<https://devfeed.tech/articles/android-unit-testing-using-robolectric-i-introduction-27130.md>)

Original publisher: [Read original article](<https://antonioleiva.com/android-unit-testing-using-robolectric-introduction>)

Published: 2013-07-07T00:00:00Z

Content type: tutorial

Language: en

Sources: [Antonio Leiva](<https://devfeed.tech/sources/antonio-leiva.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Refactoring](<https://devfeed.tech/topics/refactoring.md>), [Emulator](<https://devfeed.tech/topics/emulator.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [emulator](<https://devfeed.tech/tags/emulator.md>), [junit](<https://devfeed.tech/tags/junit.md>), [tdd](<https://devfeed.tech/tags/tdd.md>), [testing](<https://devfeed.tech/tags/testing.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>)

## AI overview

This introductory Android unit-testing tutorial explains Robolectric, a library that runs tests directly in the IDE without launching an emulator. It outlines Robolectric's shadows and support for styles, themes, and system resources, then demonstrates testing an Android activity with JUnit.

## Source excerpt

Everything Android, Kotlin and other random topics