Skip to content
UdemyAndroid DevelopmentPaid courseIntermediate levelCertificate

Android Unit Testing and Test Driven Development (Udemy.com)

Unit test your Android applications and reap the benefits of professional test driven development in Android

Created by: Vasiliy Zukanov

Last updated March 2024

icon
What you will learn

  • Start unit testing today
  • Practice unit testing with carefully designed exercises
  • Understand Android specific challenges with respect to unit testing
  • Write testable Android applications
  • Understand the benefits of Test Driven Development
  • Get tips for adoption of unit testing on Android projects

How it compares

Against the other 166 rated Udemy courses in Android Development on CourseDuck:

  • Rating4.4 out of 5higher than 56% of them
  • Reviews2,920#18 of 167 by number of reviews
  • Length5.5 hoursshorter than 69% of them
  • Last updatedMarch 2024more recently than 55% of them

icon
Quality Score

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 88 / 100

icon
Course Description

This course will teach you all you need to know about Unit Testing and Test Driven Development in Android applications. It's designed to get you up and running with unit testing using Android Studio and JUnit in no time by working through a series of carefully crafted hands-on exercises.


What's unit testing?

Unit testing is a practice of writing narrowly scoped automated tests to ensure correctness of your production code. These automated tests allow you to write code that has fewer bugs and is safer to work with in the long term. If you do unit testing, you can write higher quality Android applications that are easier to maintain.


What's test driven development?

Test driven development (TDD) is a set of special unit testing techniques that mandate writing the tests before the production code. While TDD might look complicated on the first sight, I'll show you that it's actually the easiest way to do unit testing.


What's the importance of unit testing in Android?

Unit testing is widely considered one of the most important skills for senior Android developers to have. It's a great investment into medium- and long-term professional career growth.

If bugs slip into your Android application, it can be very challenging to locate and fix them. Furthermore, even after you fix the bugs, it can take days or even weeks until all your users update the app to actually receive these fixes. That's a tough reality of professional Android developer's job. Fortunately, you can greatly reduce the number of bugs in your applications by unit testing your code!

To make your applications unit testable, you'll need to write decoupled code that follows best design principles. This automatically guarantees easier long-term maintenance. In addition, unit testing makes developing Android applications easier and spares a lot of time when done right. 


Why you should take this course:

This course is designed to introduce you to professional grade Android unit testing in the shortest amount of time. I assume that you already know Java and have experience building Android apps. Therefore, this course will not waste your time on Java and Android basics. 

You'll practice what you learn in this course with carefully designed exercises and gradually build up your unit testing skill. 

This course is aimed at professional Android developers who have no prior experience in unit testing. However, I'm confident that even experienced Android unit testers will find much new and valuable information in it.

So, if you're interested in learning professional grade unit testing in Android apps - this course is for you.

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

Vasiliy Zukanov

I'm a professional Android developer with a wide range of technical interests. After working in microelectronics industry in the past, I'm now constantly amazed at the ability of software developers to turn ideas into products.

I really like teaching and find exceptional satisfaction in explaining complicated ideas in simple words.

My courses are aimed at professional software developers who take their job seriously and aim at technical excellence.

icon
More courses by Vasiliy Zukanov

$13.99

$11.99

$54.99

$64.99

$109.99

$79.99

icon
More Android Development courses

$11.99

$54.99

$74.99

$74.99

$11.99

$64.99

icon
Reviews

4.4

2,920 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

By Asmaa Ahmed on 12/17/2025

Outdated and not recommended.

By Carlos Santes on 8/1/2022

Un buen curso en general, pero no tiene 5 estrellas porque algunos ejecicios son de un nivel mas alto que el anterior, esto esta muy bien simpre y cuando exista un socion logica que derive del primero, lamentablemnete eso fue asi,ya que el penultimo ejercicio era un salto muy grande donde si o si teneias que saber medianamente la arquitectura que estaba usando, lo cual no se curbrio en el flujo normal del curso, este ejercicio era muy importante, creo que debio de ser mas claro, como sea es un buen curso.

By Miguel Guerrero on 8/25/2021

I wasn't sure about what to expect from this course, but it was amazing. The progress of topics and difficulty was nice because you're able to understand everything. I'd suggest to add more explanations at the beginning because the first time I took this course I didn't catch why unit testing is important. It was just after using them in my job that I felt motivated to learn unit testing. Also some exercises are confusing. Besides the above, you'll learn a lot from this course!

By KiranSrinivasRao on 6/2/2021

I had never written a detailed test cases during development - I used to write few test cases covering only the boundary conditions and proceed with my development. What I have gained by this course is extra-ordinary concepts like TDD- Fake-Mock - which I had heard of but never tried writing it at all . This course gave me an insight - a first step to climb a Mountain which I was lacking now got the motivation to write test cases. Especially Uncle Bob's 3 step to write TDD cases is truly amazing. Some magical things in the Junit4 and Mockito Frameworks was also cool I felt . Got to write more test cases to get a better hold on it. I highly recommend this course to everyone who starts their career in Android Development - They should start with this course first in Android. Love from India

By Apolo Martins Rossi on 5/31/2020

O curso é muito bom mesmo! Adorei! Somente 2 pontos de críticas construtivas aqui, é que eu senti que o ritmo era um pouco lento na fala mas nada que a aceleração não resolvesse. O segundo ponto é referente a arquitetura, está bem antiga ainda em MVC e tinha muita abstração pra fazer injeção de dependência, isso dificultava um pouco pra entender o que o código fazia e consequentemente pra criar os testes. Em resumo o curso é ótimo me ajudou muito pois entrei num projeto já com testes unitários, e esse curso me auxiliou bastante a me adequar.. Super recomendo!

By Lars Spangenberg on 12/3/2019

Really great course! Ton of information on unit testing, a lot more than i expected. Before I started this course I thought it would be kinda short compared to other Udemy courses, but that was not the case. There was a lot of dense information, which was well explained, and a lot of exercises to apply your new knowledge. One of my favorite things in this course was how well written the exercises were. They actually required a lot of critical thought and really helped me with getting all the information to stick.

By Erik Medina on 10/20/2019

I'm happy that I decided to take this course about unit testing. So far, I had a mix of fear and sloth when attempting to code a simple unit test. Now I have no those feelings anymore. My expectations with this course were gaining enough skills to start writing unit test (then, improving those skills by myself through practice and a continuous learning). This course has met those expectations.

By Illia zadorozhnyi on 10/20/2019

Improvement suggestion: Would be great if after the exercises Instructor would finish them himself, I am sure it would be beneficial for students to be able to follow and compare/improve upon seeing instructor's thought process. Especially important when Exercises are quite different from previous lectures. Overall great and pretty advanced, considering that in reality huge percentage of devs don't follow proper TDD. Find myself watching lectures that preceded exercises multiple times. Thank you, Vasiliy! Looking forward to more courses!

By Oya Canli Somer on 9/5/2019

The course is well designed. The instructor is visibly passionate about testing and code quality. I learned a lot on unit testing in this course and I appreciated the productivity tricks. On the other hand, I can't say that the course covers everything you need for unit testing on android. The examples given are similar to each other, I wish they were more varied. For instance, how to unit test a viewmodel(jetpack) or a singleton repository class? He just says "don't use singletons" I think the instructor is quite opinionated about good design, and shows what he thinks is the best. But other people have different ideas about the best design and we usually don't work alone, so I wish he also showed how to deal with different cases. But overall, I learned lots if things for a small price, so I believe it was worth anyway.

By Anil S on 4/14/2019

The course covers basics of android testing involving mockito and TDD. I would have rated this 5 starts but for below observations - 1. I was able to follow and work on exercises smoothly till I reached TDD where the course suddenly gets difficult. Let alone the concept, the example used for explanation makes it even worse to understand and implement. 2. The example used throughout the course remains standard. It would have been helpful, had the testing techniques been implemented for a real project. Also, instead of sticking to same pattern of examples, had the author used few other examples, the concept would have been even clear. 3. The author insists on not knowing internal implementation of the classes while working on exercises. However, the description provided is sometimes inadequate and you are forced to check internal implementation. 4. Author says that by end of the course we will know what's the difference between faking, stubbing and mocking, but that's not true. 5. Author could have added an section on expresso and shown it working in real-time, there by covering the entire basics of testing for android.

I liked the course. As the course is titled testing in Android it would've been nice if there was a sample app showing how to modularize all the layers(UI, App, Domain and Infrastructure) and write tests from the scratch.

Super clear explanations of the fundamentals with helpful exercises.

Showing 12 of 56 reviews