Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Treehouse

Testing in Android Course (How To)

via Treehouse

Overview

Learn how to use common testing tools available for Android development.

What you'll learn

  • Unit testing in Android
  • JUnit in Android

Syllabus

Unit Testing

Properly testing your codebase is important, but that doesn't mean it's easy! In this stage, we'll see why unit testing is so difficult on Android. We'll also see how we can successfully implement unit tests using Mockito!

Chevron 10 steps
  • Testing 1 - 2 - 3

    3:43

  • The First Test

    5:37

  • Digging Deeper, Answering Questions

    6:39

  • Answering Questions

    3 questions

  • Presenting the View

    8:21

  • Viewing the Presenter

    1 objective

  • Testing the Presenter

    6:34

  • Using the Presenter

    3 questions

  • Mocking with Mockito

    6:41

  • Mockito

    3 questions

Unit Testing - Now Featuring Robolectric!

In this stage we'll learn all about how to use Robolectric to 'defang' the Android SDK jar and supercharge our unit tests!

Chevron 5 steps
  • Introducing Robolectric

    5:26

  • Robotest 1

    3 questions

  • Testing with Robolectric

    6:41

  • Shadows and Intents

    6:52

  • Shadowy Intentions

    3 questions

UI Testing with Espresso

In this stage we'll harness the power of Espresso to automatically click through our app!

Chevron 6 steps
  • Introducing Espresso

    4:17

  • One Espresso Please!

    3 questions

  • The First UI Test

    7:22

  • Testing the Spinner

    9:11

  • Testing with onView

    5 questions

  • Push the Button

    3:50

Reviews

Start your review of Testing in Android Course (How To)

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.