Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Android Testing: Unit Tests, Hilt, ViewModels and more!
Rating: 4.3 out of 5(783 ratings)
3,703 students

Android Testing: Unit Tests, Hilt, ViewModels and more!

Learn Android Testing with Kotlin: Unit tests, Hilt testing, ViewModel, Fragment, Room, Repos, Test Doubles included!
Last updated 12/2025
English

What you'll learn

  • Android Testing
  • Unit Tests
  • Integration & UI Tests
  • Testing with Hilt
  • ViewModel Testing
  • LiveData Testing
  • Fragment Testing

Course content

3 sections28 lectures6h 3m total length
  • Introduction1:24

    Discover Android testing essentials, from unit tests and integration tests to ui tests, covering room databases, fragments, live data, and view models; learn to use Hilt for robust, testable apps.

  • Different Kinds of Testing7:52

    Explore the fundamentals of Android testing, covering unit tests, integration tests, and UI tests, and learn how to allocate testing effort with a 70/20/10 focus using Jetpack components.

  • Simple Application8:33

    Build a simple tax calculator app in Kotlin with a tax repository to compute net tax and net income, and illustrate basic testing fundamentals within an mvvm-inspired architecture.

  • First Unit Test16:18

    Write and run your first unit test in Android using JUnit, focusing on test vs android test, with Kotlin examples and Truth for assertions.

  • What is TDD?11:14

    Explore test driven development, or TDD, in Android testing, learn to write tests before code, use before/after hooks, keep one assertion per test, and validate results with JUnit unit tests.

  • Test Introduction App GitHub Link0:02

Requirements

  • Intermediate Android Programming Knowledge
  • Intermediate Kotlin Knowledge
  • Ready to go Android Studio setup

Description

Welcome to the Android Testing Course!

If you are an Android Developer who is looking for to learn about testing your mobile applications, you came to the right place!

This course is for Android Developers who at least have intermediate knowledge for Kotlin and Android Development. We will learn about testing and create an application from scratch with using Jet Pack components to test it as well. All course will be completely hands-on experience.

Course is presented by Atil Samancioglu who serves more than 250.000 students worldwide on Mobile Application Development & Cyber Security. Atil also teaches Android Development in Bogazici University. Course is made with cooperation of Codestars, serving more than 1.5 million students worldwide!

Some of the topics that we are going to cover during the course:

  • Unit Tests

  • Integration & UI Tests

  • Testing with Hilt

  • Testing Fragments

  • Testing ViewModels

  • Testing LiveData

  • Test Doubles

  • Mockito & Espresso

  • JUnit

  • Testing Room

  • TDD Principles

  • Testing Navigation

If you are on your way to become a professional Android Developer, this course has everything you need, especially in the testing side of things. We will create an application called Art Book from scratch and test it together to practice everything that you need to know about testing Android applications.

All codes will be shared by us via GitHub and you can ask any question via Q&A to reach the instructor.

This course is eligible for the Codestars Certificate Authority (CCA) certificate. Students can take the official exam via codestarscom, and those who pass the quiz will receive their CCA certificate. (more details in the course!)

Happy coding!

Who this course is for:

  • Android Developers who want to learn about testing mobile applications
  • Android Devs who want to enhance their skills on JetPack components
  • Android Devs who want to learn about testing with dependency injection frameworks (Hilt)