Android Test-Driven Development by Tutorials,
Second Edition – Now Updated!

Build testable, sustainable Android apps via JUnit, Mockito, and Espresso
by diving into test-driven development (TDD) in this newly-updated book.

Home Android & Kotlin Tutorials

Announcing Android Test-Driven Development by Tutorials, Second Edition!

Dive into test-driven development (TDD). Build testable, sustainable Android apps via JUnit, Mockito, and Espresso. Learn how with our updated book!

5/5 1 Rating

If you’re a developer, you might have heard the buzz around “TDD” for quite a long time now.

What is TDD? Why should you bother to learn more about it? 🤔

TDD, or Test-Driven Development, is a process in which you write the tests for the code you are going to add or modify before you write the actual code.

Test-Driven Development is important because it allows you to build apps faster, keep your code maintainable, and ultimately, ship your apps with more confidence!

But what is the best way to learn Test-Driven Development?

Knock, Knock. There’s a Fantastic Resource at Your Doorstep!

If you’re an Android developer who’s looking to:

  • Getting started with testing.
  • Learn about Test-Driven Development.
  • Implement Test-Driven Development in new Android projects.
  • Make existing Android projects testable by implementing Test-Driven Development.

Open your door for our newly-updated book, Android Test-Driven Development by Tutorials!

Who Is This Book For?

This book is for intermediate Android developers who want to understand how to properly test apps in Android by using TDD.

What’s Inside the Book?

This edition of the Android Test-Driven Development by Tutorials book kicks off with an introduction to TDD, and then dives deep into it. Here are the 3 sections in this book…

Section I: Introduction to Test-Driven Development

This section introduces you to Android test-driven development (TDD). If testing or TDD are new concepts to you, we recommend starting here. You’ll learn everything from:

  • What is a test?
  • Why should you test?
  • What should you test?
  • What should you not test?

You’ll then get your feet wet by writing your first Kotlin test, independent of the Android framework, with the principles of TDD. This section lays the foundation for TDD, and explores concepts like the Red-Green-Refactor process.

Section II: Testing on a New Project

This section dives deep into the art of TDD. You’ll learn about the different types of tests that make up the testing pyramid and how to implement all of these different kinds of tests into an app.

  • Learn how to write good unit tests
  • Understand the importance of integration tests, as your project starts to come together
  • And, last but not least, develop UI tests that ensure a good user experience

Section III: TDD on Legacy Projects

Now that you have an understanding of TDD and have different tools at your disposal, you’ll learn how to apply these techniques to projects that weren’t created using TDD and do not have sufficient test coverage. You’ll work through an Android app, Coding Companion Finder, and be on your way to becoming a TDD guru.

What Do You Need?

To follow along with this book, you’ll need the following:

  • Kotlin 1.5: This book uses Kotlin 1.5 throughout. The examples may work with an earlier version of Kotlin, but they are untested.
  • Android Studio 4.2.1 or later: Android Studio is the main development tool for Android. You’ll need Android Studio 4.2.1 or later for the tasks in this book. You can download the latest version of Android Studio from Android’s developer site here: developer.android.com/studio.

How to Get Your Own Copy

There are two ways you can get this book:

  • Buy it individually: If you want to build up a custom library without a subscription, you can choose to buy the book individually. It’s available now for just $59.99 in our online store.
  • Get it as part of our Pro subscription: Enjoy access to our videos and mobile development books in our Ultimate Pro subscription, including Android Test-Driven Development by Tutorials! Right now, you can get a full year’s subscription and save 20% off the cost of a regular monthly subscription. It’s simply the best investment for your development career.

We hope you enjoy this book! Feel free to reach out to us if you have any questions.

Say Hello to the Team! 👋

Meet the amazing people behind this book…

Lance Gleason [Author]: Lance Gleason is an author of this book. Over the years, he has worked in everything from server side development, IoT, wearables, to mobile development. He began his TDD journey as a Ruby developer and has been an Android fan ever since he preordered the G1 in 2008. After a few years of being an Android fan he finally took the plunge into Android development when he became a Google Glass Explorer in 2013. He’s had a chance to work on project for organizations ranging from small startups to large companies with millions of users. When he is not writing code, you can find him traveling to interesting places, wine tasting, scuba diving or exploring a new hobby or interest. You can find him on Twitter at @lgleasain.

Victoria Gonda [Author]: Victoria Gonda is an author of this book. Victoria is an Android Engineer and technical author. The conferences she has spoken at have been an enjoyable way to connect with the technical community and exchange information with others. She was drawn to programming because of its potential to help people in a meaningful way. In her spare time, Victoria enjoys dancing and curling up with a good book. You can connect with her on Twitter at @TTGonda.

Fernando Sproviero [Author]: Fernando Sproviero is an author of this book. He’s a mobile developer who works in Buenos Aires, Argentina. He’s a graduated software engineer who enjoys learning and discussing about good practices and architecture. He’s passionate about Android, iOS and API backend development. You can reach out to him on Twitter @fernandospr or on LinkedIn @fernandosproviero.

Jonathan Wong [Final Pass Editor]: Jonathan Wong is the final pass editor of this book. Whether it’s Android or iOS, as long as it’s mobile, he’s interested. Jonathan is a Pluralsight author, YouTuber and is a member of the video team at raywenderlich.com. He’s a software engineer in sunny San Diego where he’s worked on everything from mobile apps, to front-end Javascript, to server-side development. When he’s not taking care of his two kids, three cats, or three chickens, he’s usually trying to steal away time for a good run or a good cup of coffee. You can follow him on Twitter at @fattywaffles.

Start Reading for Free Today

This edition of Android Test-Driven Development by Tutorials is out today—and even better, you can start reading the book for free:

As with all our books, Android Test-Driven Development by Tutorials has been automatically added to the collections of all Ultimate Pro subscribers.

On behalf of the book team, we hope you enjoy this book and explore all the benefits that Test-Driven Development has to offer for your Android apps!

Average Rating

5/5

Add a rating for this content

1 rating

More like this

Contributors

Comments